Jason Evans
8693a9ea05
Add timer support for Windows.
2015-07-13 14:35:15 -07:00
Daniel Micay
d6384b09e1
use CLOCK_MONOTONIC in the timer if it's available
...
Linux sets _POSIX_MONOTONIC_CLOCK to 0 meaning it *might* be available,
so a sysconf check is necessary at runtime with a fallback to the
mandatory CLOCK_REALTIME clock.
2015-03-13 14:07:35 -07:00
Jason Evans
e12eaf93dc
Style and spelling fixes.
2014-12-08 16:34:04 -08:00
Daniel Micay
c3bfe9569a
avoid conflict with the POSIX timer_t type
...
It hits a compilation error with glibc 2.19 without a rename.
2014-09-08 01:20:44 -04:00
Jason Evans
b67ec3c497
Add a simple timer implementation for use in benchmarking.
2014-09-07 19:57:24 -07:00