Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace time_t_to_tm with calendar_value which returns a struct representing | lloyd | 2009-12-24 | 1 | -5/+10 |
| | | | | the calendar time without tying to a particular format. From the C++0x branch. | ||||
* | Wrap up whatever we're using for gmtime in an anon-namespace function do_gmtime | lloyd | 2009-12-24 | 1 | -14/+19 |
| | |||||
* | Fix compile of get_nanoseconds_clock for Windows. | lloyd | 2009-12-23 | 1 | -2/+12 |
| | | | | | | | Add macros for OS support of gmtime_r (Unix) and gmtime_s (Win32) to deal with thread-unsafety of std::gmtime. Only enable gmtime_r on Linux currently, but it's probably available pretty much everywhere (specified in pthreads, origininally, AFAICT). | ||||
* | Add GetSystemTimeAsFileTime as high res timer for Win32 | lloyd | 2009-12-22 | 1 | -7/+21 |
| | |||||
* | Consolidate the non-canonical epoch timers, like cpuid and Win32's | lloyd | 2009-12-01 | 1 | -0/+87 |
QueryPerformanceCounter, into an entropy source hres_timer. Its results, if any, do not count as contributing entropy to the poll. Convert the other (monotonic/fixed epoch) timers to a single function get_nanoseconds_clock(), living in time.h, which statically chooses the 'best' timer type (clock_gettime, gettimeofday, std::clock, in that order depending on what is available). Add feature test macros for clock_gettime and gettimeofday. Remove the Timer class and timer.h. Remove the Timer& argument to the algorithm benchmark function. |