![]() |
|
|
|
#1 |
|
I need to time the execution time of a script and
output the exe time as a string. can someone help me write this function in csharp time1 //at the beginning of the script .. .. .. time2 //at the end of the script string exeTime = time2 - time1 thanks Aaron |
|
|
|
|
#2 |
|
Posts: n/a
|
Aaron wrote:
> I need to time the execution time of a script and > output the exe time as a string. > can someone help me write this function in csharp > Aaron, You can use the following: DateTime dt1 = DateTime.Now; MakeACall(); DateTime dt2 = DateTime.Now; TimeSpan ts = dt2 - dt1; string diff = ts.ToString(); You can also use Microsoft Enterprise Instrumentation framework (EIF) http://msdn.microsoft.com/vstudio/pr...nterprise/eif/ -- Thanks, Carl Prothman Microsoft ASP.NET MVP Hire top-notch developers at http://www.able-consulting.com Carl Prothman [MVP] |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cancelling Timer and TimerTask threads | wfalby | Software | 1 | 04-30-2009 01:04 PM |
| Manual/QTP/Software Testing/Testing tools Project training for Rs.1000 by Real Timer | priyanka.madhu97 | Software | 0 | 12-30-2008 01:47 AM |
| help with master page and java script | alain23 | Software | 0 | 09-20-2007 06:02 AM |
| thomson dth 8005 Timer problem | Rainer Willis | DVD Video | 0 | 08-14-2007 07:34 PM |
| NVTMR SPRM (Navigational Timer System Parameter) in DVD spec - do set top players support it? | Leviathan | DVD Video | 0 | 08-09-2003 03:21 AM |