Markus Kuhn wrote:

If you have nothing better to do around midnight UTC tonight, then
install

 http://www.cl.cam.ac.uk/~mgk25/time/leap/timelog.c

and run it with

 ./timelog -w2005-12-31T23:59:00 -d180 >/tmp/leapsecond.log

to record the last minute of this year and the first to of the next on
any potentially interesting NTP machine that you can get hold of.

This records the BSD API, the POSIX API, and on Pentium CPUs also the
Pentium timestamp counter. Command-line options allow you specify start
time and duration of the recording.

This is meant to be portable POSIX code, but has only been tested under
Linux so far.

Markus

This code does not build on Solaris!  (Solaris 8/SPARC)

sunblok_$ gcc timelog.c
timelog.c: In function `read_tsc':
timelog.c:43: error: unknown register name `edx' in `asm'
timelog.c:43: error: unknown register name `eax' in `asm'
timelog.c: In function `main':
timelog.c:113: error: `CLOCK_MONOTONIC' undeclared (first use in this function)
timelog.c:113: error: (Each undeclared identifier is reported only once
timelog.c:113: error: for each function it appears in.)
timelog.c:114: error: `CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function) timelog.c:115: error: `CLOCK_THREAD_CPUTIME_ID' undeclared (first use in this function)
timelog.c:144:2: warning: no newline at end of file

_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to