Yaakov Selkowitz b150f5236b Implement POSIX.1-2004 Monotonic Clock.
* hires.h: Change hires_us to hires_ns, with nanosecond resolution.
(hires_ns::primed_ft): Remove.
(hires_ns::nsecs): New prototype.
(hires_ns::usecs): Rewrite in terms of nsecs.
(hires_ns::resolution): New prototype.
* times.cc: Change hires_us to hires_ns.
(ntod): Declare.
(systime): Remove.
(hires_ns::prime): Increase resolution to nanoseconds.
(hires_ns::nsecs): Rename usecs to nsecs to reflect increased resolution.
Remove justdelta argument.
(hires_ns::resolution): New function.
(clock_gettime): Accept CLOCK_MONOTONIC.
Use EINVAL instead of ENOSYS per POSIX.1-2004.
(clock_getres): Ditto.
(clock_setres): Use EINVAL instead of ENOSYS to conform with other
implementations.
* strace.cc (strace::microseconds): Adjust for hires_ns.
* sysconf.cc (sca): Set _SC_MONOTONIC_CLOCK to _POSIX_MONOTONIC_CLOCK.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2010-08-09 16:47:48 +00:00
..
2009-01-21 17:14:39 +00:00
2006-05-24 16:59:03 +00:00
2006-03-01 20:20:22 +00:00
2009-09-22 02:49:15 +00:00
2006-01-16 19:52:21 +00:00
2007-01-03 11:14:53 +00:00
2009-09-22 02:49:15 +00:00
2010-01-01 19:28:15 +00:00
2009-01-21 17:14:39 +00:00
2009-01-21 17:14:39 +00:00
2009-01-21 17:14:39 +00:00
2005-09-29 14:28:22 +00:00
2010-04-20 03:45:27 +00:00
2009-08-01 19:52:46 +00:00
2009-10-31 13:24:06 +00:00
2010-02-28 15:54:25 +00:00
2009-07-07 20:12:44 +00:00
2010-07-19 18:22:40 +00:00
2010-03-03 15:05:19 +00:00
2010-03-03 15:05:19 +00:00
2010-02-02 02:00:01 +00:00
2010-01-14 18:46:02 +00:00
2010-03-01 06:39:47 +00:00
2010-01-14 18:46:02 +00:00
2010-01-14 18:46:02 +00:00
2010-01-14 18:46:02 +00:00
2006-03-01 20:20:22 +00:00
2010-02-02 02:00:01 +00:00
2010-02-22 11:01:46 +00:00
2010-07-19 18:22:40 +00:00
2010-04-10 05:47:54 +00:00
2009-01-21 17:14:39 +00:00
2008-11-26 17:21:04 +00:00
2008-05-20 15:11:23 +00:00
2010-01-14 18:46:02 +00:00
2010-07-19 18:22:40 +00:00
2009-01-21 17:14:39 +00:00
2009-01-21 17:14:39 +00:00
2008-05-22 01:25:37 +00:00
2010-03-13 19:34:35 +00:00
2010-02-28 15:54:25 +00:00
2010-06-21 19:55:12 +00:00
2009-08-01 19:52:46 +00:00
2009-08-01 19:52:46 +00:00
2006-07-17 19:30:30 +00:00
2009-02-19 16:12:02 +00:00