Boost logo

Boost Users :

From: Peng Yu (pengyu.ut_at_[hidden])
Date: 2007-09-02 21:18:57


Hi,

I want to use boost timer to measure my program runtime.
Unfortunately, the maximum elapsed time that it can give is only about
two thousand seconds. I'm wondering if there is any way to increase
this limit?

Thanks,
Peng

$ cat main.cc
#include <boost/timer.hpp>
#include <iostream>

int main() {
  boost::timer this_timer;
  std::cout << this_timer.elapsed_max() << " sec" << std::endl;
}
$ ./main-g.exe
2147.48 sec


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net