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

Get time difference

P: n/a
Hiya

Does anyone know how I would get the difference between 2 times in
milliseconds? I am doing functions that may take less than a second, and I
need to know how many milliseconds it took. Also, for the function that did
take over a second, I need to format the time to take into account the
milliseconds as well. For example: Function 1 = 0.5 Secs, Function 2 = 3.7
Secs (The time is taken before and after the function call and I will
calculate the time based on these 2 times)

Thank you.

Regards,
Steve.
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
If you're looking for high performance timers, there is one included in the
sample on the following page :
http://msdn.microsoft.com/library/de...rp11152001.asp

Yves

"Sauron" <st****@centurion-ms.co.uk> schreef in bericht
news:O8**************@TK2MSFTNGP12.phx.gbl...
Hiya

Does anyone know how I would get the difference between 2 times in
milliseconds? I am doing functions that may take less than a second, and I
need to know how many milliseconds it took. Also, for the function that did take over a second, I need to format the time to take into account the
milliseconds as well. For example: Function 1 = 0.5 Secs, Function 2 = 3.7
Secs (The time is taken before and after the function call and I will
calculate the time based on these 2 times)

Thank you.

Regards,
Steve.

Nov 22 '05 #2

P: n/a
Hi Phoenix

Works a treat! Thank you :o)

Regards,
Steve

"phoenix" <pa******@skynetWORK.be> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
If you're looking for high performance timers, there is one included in the sample on the following page :
http://msdn.microsoft.com/library/de...rp11152001.asp
Yves

"Sauron" <st****@centurion-ms.co.uk> schreef in bericht
news:O8**************@TK2MSFTNGP12.phx.gbl...
Hiya

Does anyone know how I would get the difference between 2 times in
milliseconds? I am doing functions that may take less than a second, and I need to know how many milliseconds it took. Also, for the function that

did
take over a second, I need to format the time to take into account the
milliseconds as well. For example: Function 1 = 0.5 Secs, Function 2 = 3.7 Secs (The time is taken before and after the function call and I will
calculate the time based on these 2 times)

Thank you.

Regards,
Steve.


Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.