I'm using boost::timer to benchmark some code, but I was wondering about resolution.
http://www.boost.org/doc/libs/1_46_1/libs/timer/
This page states that it uses std::clock() to get the time, which has 1ms resolution, which I would like better than, if possible.
This old page: http://unitedsoft.ch/boost/libs/timers/ states that boost (?) used to be able to define a microsecond timer. Is this still possible with the current standard version of boost? (boost_1_46_1)
I can't seem to find the syntax, if it is possible.
EDIT: This code has to work on both Linux and Windows, otherwise I would just use gettimeofday() to get a better resolution.
http://www.boost.org/doc/libs/1_46_1/libs/timer/
This page states that it uses std::clock() to get the time, which has 1ms resolution, which I would like better than, if possible.
This old page: http://unitedsoft.ch/boost/libs/timers/ states that boost (?) used to be able to define a microsecond timer. Is this still possible with the current standard version of boost? (boost_1_46_1)
I can't seem to find the syntax, if it is possible.
EDIT: This code has to work on both Linux and Windows, otherwise I would just use gettimeofday() to get a better resolution.