|
-
Aug 28th, 2007, 09:54 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] how to read System.Time, how accurate?
G'day all.
how to determine execute time of a SQL query?
sTime=read system time
-> execute a NonQuery on a database
eTime=read system time
calculate the diff.. dTime=eTime-sTime..
no go..
Error: Value of type 'System.TimeSpan' cannot be converted to 'Date'.
any ideas on how to get the diff???
thanks,
-
Aug 28th, 2007, 10:01 AM
#2
Re: how to read System.Time, how accurate?
You didn't say what version you are using, but if you are using the 2.0 Framework then you can use the Stopwatch class to accurately measure elapsed time:
http://msdn2.microsoft.com/en-us/lib...ch(vs.80).aspx
-
Aug 28th, 2007, 12:47 PM
#3
Thread Starter
Hyperactive Member
Re: how to read System.Time, how accurate?
 Originally Posted by nmadd
am using 2.0 Framework.
and the suggested class is perfect!!
many thanks @nmadd!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|