aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/time.h
Commit message (Collapse)AuthorAgeFilesLines
* Add/fix doxygen commentslloyd2009-12-241-5/+12
|
* Replace time_t_to_tm with calendar_value which returns a struct representinglloyd2009-12-241-1/+14
| | | | the calendar time without tying to a particular format. From the C++0x branch.
* Consolidate the non-canonical epoch timers, like cpuid and Win32'slloyd2009-12-011-0/+30
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.