Alex Rivera | Logout

How to transform milliseconds into seconds .?

Asked 2010-11-14T19:33:23.480
18

I have to transform my Stopwatch "Variable" into seconds ?

Stopwatch czasAlg = new Stopwatch(); 
czasAlg.Start();
//Do semothing
czasAlg.Stop();
Decimal Tn = czasAlg.ElapsedMilliseconds/(decimal)n;
Edit
Report

2 Answers

24

Just to be different:

Multiply by 0.001.

answered 2010-11-14T19:36:30.780
0

Divide by 1000.

answered 2010-11-14T19:35:45.180

Your Answer