Re: [PATCH] /dev/time for Linux, inspired by Plan 9

Jochen Voß
2009-03-11T21:49:40Z

Hi Christopher,

2009/3/11 Christopher Brannon <cmbrannon@cox.net>:
> +/dev/time provides a file-based interface to the system clock.
> +Using this interface, one can query or set the system clock by reading or
> +writing text strings. A read of /dev/time yields four decimal integers:
> +seconds since start of epoch, nanoseconds since start of epoch,
> +nanoseconds since boot, and nanoseconds per second.
> [...]
> +Examples
> +--------
> +cat /dev/time
> +# Produces: 1236121128 123612012877063000 495497 300,
> +# at time of writing on a test machine.

The last two numbers in the example seem suspicous to me. 300
nanoseconds per second?

I hope this helps,
Jochen
--