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

Times

P: n/a
Is there any way to get times that are smaller than a millisecond?
Perhaps some library?
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Nick" <nu**************@yahoo.com.au> wrote in message news:vd********************************@4ax.com...
Is there any way to get times that are smaller than a millisecond?
Perhaps some library?


Not portably. You need to check your particular OS for what
timing features they provide. For Solaris we use gethrtimer.
For Windows we use QueryPreformanceCounter.
Jul 19 '05 #2

P: n/a
gettimeofday gives you a microsecond level resolution.

Sandeep
--
http://www.EventHelix.com/EventStudio
EventStudio 2.0 - Generate Sequence Diagrams and Use Case Diagrams in PDF
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.