Boost.Date_Time - How to measure time elapsed?
Hello, I've been struggling with how to use the Date_Time library to measure time elapsed (like to measure how long code takes to execute). Could somebody provide me with an example? Resolution should be around msec. I could not find any in the reference that particularly addresses this. Thanks! Jean
I've been struggling with how to use the Date_Time library to measure time elapsed (like to measure how long code takes to execute).
Could somebody provide me with an example? Resolution should be around msec. I could not find any in the reference that particularly addresses this.
See the boost::timer class http://www.boost.org/doc/libs/1_35_0/libs/timer/index.html Thanks Jeff
Thanks, this is perfect!
On 7/23/08, Jeff Foster
I've been struggling with how to use the Date_Time library to measure time elapsed (like to measure how long code takes to execute).
Could somebody provide me with an example? Resolution should be around msec. I could not find any in the reference that particularly addresses this.
See the boost::timer class
http://www.boost.org/doc/libs/1_35_0/libs/timer/index.html
Thanks
Jeff
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Jean-Sebastien Stoezel
-
Jeff Foster