RE: [Boost-users] date_time clocks, microsec_clock, etc
For those that need something portable we should be able to get microsecond resolution for Windows, Linux, and probably a few more...
Jeff
Microsecond resolution on linux? What interface provides this? I have a linux platform or 2 that I'm pretty sure won't provide it at present, but probably could with some kernel hacking, if only there was some sensible interface to connect it to user space. Darryl. ########################################################################## This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimise the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. ##########################################################################
Darryl Green wrote:
For those that need something portable we should be able to get microsecond resolution for Windows, Linux, and probably a few more...
Jeff
Microsecond resolution on linux? What interface provides this? I have a linux platform or 2 that I'm pretty sure won't provide it at present, but probably could with some kernel hacking, if only there was some sensible interface to connect it to user space.
The way to do this would be with the newer POSIX clock_gettime() etc. Its only well-implemented in recent Linux kernels supposedly, and I have not yet tested it myself. I notice some other systems seem to be using clock_gettime() also. rdtsc might be a possibility too for Intel machines if uncertainties with it could be worked out. Aaron
On Fri, 7 May 2004 19:00:37 +1000, Darryl Green wrote
For those that need something portable we should be able to get microsecond resolution for Windows, Linux, and probably a few more...
Jeff
Microsecond resolution on linux? What interface provides this? I have a linux platform or 2 that I'm pretty sure won't provide it at present, but probably could with some kernel hacking, if only there was some sensible interface to connect it to user space.
Sorry, I was thinking that ACE was able to get microsec resolution on Linux, but it appears I was mixing it up with Solaris. BTW, this page might be a useful reference: http://www.dre.vanderbilt.edu/Doxygen/Current/html/ace/classACE__High__Res__... Jeff BTW -- this discussion should really move to the dev list...
participants (3)
-
Aaron W. LaFramboise
-
Darryl Green
-
Jeff Garland