25 Jul
2008
25 Jul
'08
8:29 a.m.
What platform is that?
A very common one: Linux 2.6 with GCC 4.1 or 4.2. The distribution is Kubuntu. timer().elapsed_max() gives 2147.48 on this platform and indeed, elapsed() returns negative numbers above that time (before returning to 0). I had thought about the possibility of making a policy-based version of boost::timer, with something like a "heart policy" that would define the way in which the time would be obtained and stored internally. There would be a portable one (the one of boost::timer currently), another one based on boost::date_time, and why not some platform-specific ones (QueryPerformanceCounter on windows for instance). But I never had the time to dig more :-( Bruno