Eric Blake b8a35083c6 Improve clock_gettime and utimensat resolution.
* hires.h (hires_ms): Change initime_us to initime_ns, with 10x
more resolution.
(hires_ms::nsecs): New prototype.
(hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust.
* times.cc (systime_ns): New helper function.
(hires_ms::prime): Use it for more resolution.
(hires_ms::usecs): Change to...
(hires_ms::nsecs): ...with more resolution.
(clock_gettime): Use more resolution.
(systime): Rewrite in terms of systime_ns.
(timespec_to_filetime): Rewrite math to reflect true operation.
* fhandler_disk_file.cc (utimens_fs): Use higher resolution.
2009-10-13 02:26:33 +00:00
..
2009-10-07 15:47:38 +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 14:27:57 +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
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
2009-08-01 19:52:46 +00:00
2009-07-07 20:12:44 +00:00
2009-09-26 21:01:10 +00:00
2009-08-21 21:32:06 +00:00
2009-09-26 21:01:10 +00:00
2006-03-01 20:20:22 +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
2009-10-07 15:47:38 +00:00
2009-10-07 15:47:38 +00:00
2009-09-26 21:01:10 +00:00
2009-10-07 15:47:38 +00:00
2008-04-01 13:22:47 +00:00
2009-01-21 17:14:39 +00:00
2009-01-21 17:14:39 +00:00
2009-10-07 15:47:38 +00:00
2008-05-22 01:25:37 +00:00
2009-07-03 18:05:51 +00:00
2009-07-03 18:05:51 +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