프로그래밍

[vb.net] calc elapsed_time

프로세스 천국 2013. 6. 2. 06:34

Static start_time As DateTime
Static stop_time As DateTime
Dim elapsed_time As TimeSpan
start_time = Now

 


'Do

 

 

stop_time = Now
elapsed_time = stop_time.Subtract(start_time)
MsgBox(elapsed_time.TotalSeconds.ToString("0.000000"))

 

 

 

http://www.vb-helper.com/howto_net_measure_elapsed_time.html