diff options
author | Eric Blake <eblake@redhat.com> | 2009-10-13 02:26:33 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2009-10-13 02:26:33 +0000 |
commit | b8a35083c6c8ff967576ba6e9978323124506599 (patch) | |
tree | 4706e1f2df3c6dd2bf39017a50218ffa25ab5c04 /configure | |
parent | 2fc007681e372282054c72dc95cee5f79e7d4b65 (diff) | |
download | newlib-b8a35083c6c8ff967576ba6e9978323124506599.zip newlib-b8a35083c6c8ff967576ba6e9978323124506599.tar.gz newlib-b8a35083c6c8ff967576ba6e9978323124506599.tar.bz2 |
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.
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions