By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,569 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,569 IT Pros & Developers. It's quick & easy.

Calculate duration

P: n/a
TimeSpan span = aEnd.Subtract(aStart);
System.Console.WriteLine(span.TotalMilliseconds);

Tu-Thach
-----Original Message-----
I want to calculate the time it takes to execute a function is there adatediff function?

example code

System.DateTime aStart = System.DateTime.Now;
Henwood.Shared.MCPosition.API.DAL.Services.Output DataByCla ss aOutByClass =new Henwood.Shared.MCPosition.API.DAL.Services.OutputD ataByClas
s(aStudyID,aClassName);

System.DateTime aEnd = System.DateTime.Now;

//Calculate Time
.

Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.