Re: How do I calculate elapsed time in milliseconds?
Not sure if this does what you want, but I like using unix time stamp in
general:
double my_start_time, my_end_time, my_diff;
my_start_time = (DateTime.UtcNo w - new
DateTime(1970,1 ,1,0,0,0)).Tota lSeconds;
// for loop or some events goes in here
my_end_time = (DateTime.UtcNo w - new DateTime(1970,1 ,1,0,0,0)).Tota lSeconds;
my_diff = my_end_time-my_start_time;
"JSmith" <nfr@nospam.com > wrote in message
news:eVdxAZ$FEH A.2428@tk2msftn gp13.phx.gbl...[color=blue]
> I want to determine the elapsed time between two events. What is the best
> way to do this?
>
>[/color]