The FreeBSD Ports Archive

Freebsd | Contact
Welcome to FreeBSD Software


FreeBSD sysutils : clockspeed

Uses a hardware tick counter to compensate for deviant system clock

 clockspeed uses a hardware tick counter to compensate for a persistently
fast or slow system clock. Given a few time measurements from a reliable
source, it computes and then eliminates the clock skew.

sntpclock checks another system's NTP clock, and prints the results in a
format suitable for input to clockspeed. sntpclock is the simplest
available NTP/SNTP client.

taiclock and taiclockd form an even simpler alternative to SNTP. They
are suitable for precise time synchronization over a local area network,
without the hassles and potential security problems of an NTP server.

This version of clockspeed can use the Pentium RDTSC tick counter or the
Solaris gethrtime() nanosecond counter.

A port to non-i386 platforms was done using the clock_gettime(2)
function. Since this is somewhat experimental, there might be some
tiny precision differences from the i386 platform versions. You
have been warned! 

http://cr.yp.to/clockspeed.html



clockspeed history


v. 1.20
date: 2007/03/22 17:02:34;  author: rafan;  state: Exp;  lines: +13 -17
- Move stuffs that are after post.mk to appropriate places
- Use DOCSDIR

PR:		ports/109335
Submitted by:	rafan
Approved by:	maintainer timeout (1 month)

v. 1.19 date: 2006/05/13 04:15:26; author: edwin; state: Exp; lines: +0 -1 Remove USE_REINPLACE from all categories starting with S
v. 1.18 date: 2005/12/23 20:23:22; author: lioux; state: Exp; lines: +4 -1 o Update the leap seconds table according to http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat. There is a leap seconds at the end of 2005. o Obtain the fresh and updated leap seconds table from devel/libtai port. o Bump PORTREVISION PR: 89948 Submitted by: Frank W. Josellis , markzero Obtained from: http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat
v. 1.17 date: 2004/12/25 11:43:57; author: lioux; state: Exp; lines: +0 -1 Remove deprecated USE_SIZE
v. 1.16 date: 2004/02/08 01:14:03; author: lioux; state: Exp; lines: +1 -0 USE_SIZEify
v. 1.15 date: 2003/02/23 19:58:33; author: lioux; state: Exp; lines: +1 -0 De-pkg-comment
v. 1.14 date: 2003/02/07 15:43:57; author: lioux; state: Exp; lines: +0 -1 Sanitize MASTER_SITES Submitted by: fenner's distfiles survey
v. 1.13 date: 2003/01/02 05:46:09; author: lioux; state: Exp; lines: +8 -1 o Remove ONLY_FOR_ARCHS limitation by adding timing support other than RDTSC registers from Pentium. After a reminder by Garrett Wollman [1] that FreeBSD has a gethrtime() similar function, added experimental support for FreeBSD clock_gettime(2) which should work in all FreeBSD supported ARCHes o Add notes in both DESCR and PKGMESSAGE that there might be precision differences since this is experimental code Reviewed by: portmgr (silence/no objections) Submitted by: wollman [1]
v. 1.12 date: 2002/12/18 18:45:26; author: lioux; state: Exp; lines: +1 -0 Mark as ONLY_FOR_ARCHS i386 since it requires either a pentium hardware tick counter or an equivalent Solaris gethrtime() syscall. This should be investigated further. FreeBSD might have an equivalent syscall. Submitted by: bento
v. 1.11 date: 2002/11/04 22:57:36; author: edwin; state: Exp; lines: +2 -1 Half of these ones missed yesterday while converting to USE_REINPLACE. The other half needs perl to build. Noticed on bento and others (full mailbox :-)
v. 1.10 date: 2002/09/20 14:38:44; author: lioux; state: Exp; lines: +2 -1 Sanitize MASTER_SITES Submitted by: fenner's distfile survey
v. 1.9 date: 2002/07/08 01:34:45; author: lioux; state: Exp; lines: +0 -1 Sanitize MASTER_SITES
v. 1.8 date: 2002/01/29 11:58:45; author: knu; state: Exp; lines: +4 -4 Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command; the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command.
v. 1.7 date: 2001/05/25 14:58:05; author: lioux; state: Exp; lines: +28 -6 1) Install leapsecs.dat (leapseconds support) 2) Add PKGMESSAGE with additional FreeBSD specific installation information 3) Install sample startup script 4) Bump PORTREVISION due to (1) PR: 27617 Submitted by: Vivek Khera
v. 1.6 date: 2001/02/22 17:22:39; author: lioux; state: Exp; lines: +4 -2 Add new MASTER_SITES
v. 1.5 date: 2001/01/16 19:08:35; author: will; state: Exp; lines: +1 -7 Update to sync with bsd.port.mk rev 1.361 - use PORTDOCS that is now in bsd.port.mk, for easy removal of documentation. I left alone one port - japanese/elisa8x8 (or something like that), because it appeared to have some rather weird way of doing PORTDOCS substitution.
v. 1.4 date: 2001/01/16 17:32:26; author: sobomax; state: Exp; lines: +3 -3 Massive style enforcement - use ^I instead of spaces for variables identation.
v. 1.3 date: 2000/11/20 14:48:56; author: lioux; state: Exp; lines: +2 -1 Submitted by: sobomax Bump PORTREVISION according to Revision 1.2 of both files/patch-ac and pkg-plist.
v. 1.2 date: 2000/10/03 05:12:39; author: lioux; state: Exp; lines: +2 -2 Maintainer is now a committer, update email accordingly Approved by: will
v. 1.1 date: 2000/07/07 14:30:01; author: sobomax; state: Exp; Add clockspeed - a program which uses a hardware tick counter to compensate for a persistently fast or slow system clock. It also could be used to synchronize time across LAN or WAN. PR: 19349 Submitted by: Mario Sergio Fujikawa Ferreira ============================================================================= v. 1.20 date: 2007/03/22 17:02:34; author: rafan; state: Exp; lines: +13 -17 - Move stuffs that are after post.mk to appropriate places - Use DOCSDIR PR: ports/109335 Submitted by: rafan Approved by: maintainer timeout (1 month)
v. 1.19 date: 2006/05/13 04:15:26; author: edwin; state: Exp; lines: +0 -1 Remove USE_REINPLACE from all categories starting with S
v. 1.18 date: 2005/12/23 20:23:22; author: lioux; state: Exp; lines: +4 -1 o Update the leap seconds table according to http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat. There is a leap seconds at the end of 2005. o Obtain the fresh and updated leap seconds table from devel/libtai port. o Bump PORTREVISION PR: 89948 Submitted by: Frank W. Josellis , markzero Obtained from: http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat
v. 1.17 date: 2004/12/25 11:43:57; author: lioux; state: Exp; lines: +0 -1 Remove deprecated USE_SIZE
v. 1.16 date: 2004/02/08 01:14:03; author: lioux; state: Exp; lines: +1 -0 USE_SIZEify
v. 1.15 date: 2003/02/23 19:58:33; author: lioux; state: Exp; lines: +1 -0 De-pkg-comment
v. 1.14 date: 2003/02/07 15:43:57; author: lioux; state: Exp; lines: +0 -1 Sanitize MASTER_SITES Submitted by: fenner's distfiles survey
v. 1.13 date: 2003/01/02 05:46:09; author: lioux; state: Exp; lines: +8 -1 o Remove ONLY_FOR_ARCHS limitation by adding timing support other than RDTSC registers from Pentium. After a reminder by Garrett Wollman [1] that FreeBSD has a gethrtime() similar function, added experimental support for FreeBSD clock_gettime(2) which should work in all FreeBSD supported ARCHes o Add notes in both DESCR and PKGMESSAGE that there might be precision differences since this is experimental code Reviewed by: portmgr (silence/no objections) Submitted by: wollman [1]
v. 1.12 date: 2002/12/18 18:45:26; author: lioux; state: Exp; lines: +1 -0 Mark as ONLY_FOR_ARCHS i386 since it requires either a pentium hardware tick counter or an equivalent Solaris gethrtime() syscall. This should be investigated further. FreeBSD might have an equivalent syscall. Submitted by: bento
v. 1.11 date: 2002/11/04 22:57:36; author: edwin; state: Exp; lines: +2 -1 Half of these ones missed yesterday while converting to USE_REINPLACE. The other half needs perl to build. Noticed on bento and others (full mailbox :-)
v. 1.10 date: 2002/09/20 14:38:44; author: lioux; state: Exp; lines: +2 -1 Sanitize MASTER_SITES Submitted by: fenner's distfile survey
v. 1.9 date: 2002/07/08 01:34:45; author: lioux; state: Exp; lines: +0 -1 Sanitize MASTER_SITES
v. 1.8 date: 2002/01/29 11:58:45; author: knu; state: Exp; lines: +4 -4 Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command; the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command.
v. 1.7 date: 2001/05/25 14:58:05; author: lioux; state: Exp; lines: +28 -6 1) Install leapsecs.dat (leapseconds support) 2) Add PKGMESSAGE with additional FreeBSD specific installation information 3) Install sample startup script 4) Bump PORTREVISION due to (1) PR: 27617 Submitted by: Vivek Khera
v. 1.6 date: 2001/02/22 17:22:39; author: lioux; state: Exp; lines: +4 -2 Add new MASTER_SITES
v. 1.5 date: 2001/01/16 19:08:35; author: will; state: Exp; lines: +1 -7 Update to sync with bsd.port.mk rev 1.361 - use PORTDOCS that is now in bsd.port.mk, for easy removal of documentation. I left alone one port - japanese/elisa8x8 (or something like that), because it appeared to have some rather weird way of doing PORTDOCS substitution.
v. 1.4 date: 2001/01/16 17:32:26; author: sobomax; state: Exp; lines: +3 -3 Massive style enforcement - use ^I instead of spaces for variables identation.
v. 1.3 date: 2000/11/20 14:48:56; author: lioux; state: Exp; lines: +2 -1 Submitted by: sobomax Bump PORTREVISION according to Revision 1.2 of both files/patch-ac and pkg-plist.
v. 1.2 date: 2000/10/03 05:12:39; author: lioux; state: Exp; lines: +2 -2 Maintainer is now a committer, update email accordingly Approved by: will
v. 1.1 date: 2000/07/07 14:30:01; author: sobomax; state: Exp; Add clockspeed - a program which uses a hardware tick counter to compensate for a persistently fast or slow system clock. It also could be used to synchronize time across LAN or WAN. PR: 19349 Submitted by: Mario Sergio Fujikawa Ferreira ============================================================================= v. 1.20 date: 2007/03/22 17:02:34; author: rafan; state: Exp; lines: +13 -17 - Move stuffs that are after post.mk to appropriate places - Use DOCSDIR PR: ports/109335 Submitted by: rafan Approved by: maintainer timeout (1 month)
v. 1.19 date: 2006/05/13 04:15:26; author: edwin; state: Exp; lines: +0 -1 Remove USE_REINPLACE from all categories starting with S
v. 1.18 date: 2005/12/23 20:23:22; author: lioux; state: Exp; lines: +4 -1 o Update the leap seconds table according to http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat. There is a leap seconds at the end of 2005. o Obtain the fresh and updated leap seconds table from devel/libtai port. o Bump PORTREVISION PR: 89948 Submitted by: Frank W. Josellis , markzero Obtained from: http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat
v. 1.17 date: 2004/12/25 11:43:57; author: lioux; state: Exp; lines: +0 -1 Remove deprecated USE_SIZE
v. 1.16 date: 2004/02/08 01:14:03; author: lioux; state: Exp; lines: +1 -0 USE_SIZEify
v. 1.15 date: 2003/02/23 19:58:33; author: lioux; state: Exp; lines: +1 -0 De-pkg-comment
v. 1.14 date: 2003/02/07 15:43:57; author: lioux; state: Exp; lines: +0 -1 Sanitize MASTER_SITES Submitted by: fenner's distfiles survey
v. 1.13 date: 2003/01/02 05:46:09; author: lioux; state: Exp; lines: +8 -1 o Remove ONLY_FOR_ARCHS limitation by adding timing support other than RDTSC registers from Pentium. After a reminder by Garrett Wollman [1] that FreeBSD has a gethrtime() similar function, added experimental support for FreeBSD clock_gettime(2) which should work in all FreeBSD supported ARCHes o Add notes in both DESCR and PKGMESSAGE that there might be precision differences since this is experimental code Reviewed by: portmgr (silence/no objections) Submitted by: wollman [1]
v. 1.12 date: 2002/12/18 18:45:26; author: lioux; state: Exp; lines: +1 -0 Mark as ONLY_FOR_ARCHS i386 since it requires either a pentium hardware tick counter or an equivalent Solaris gethrtime() syscall. This should be investigated further. FreeBSD might have an equivalent syscall. Submitted by: bento
v. 1.11 date: 2002/11/04 22:57:36; author: edwin; state: Exp; lines: +2 -1 Half of these ones missed yesterday while converting to USE_REINPLACE. The other half needs perl to build. Noticed on bento and others (full mailbox :-)
v. 1.10 date: 2002/09/20 14:38:44; author: lioux; state: Exp; lines: +2 -1 Sanitize MASTER_SITES Submitted by: fenner's distfile survey
v. 1.9 date: 2002/07/08 01:34:45; author: lioux; state: Exp; lines: +0 -1 Sanitize MASTER_SITES
v. 1.8 date: 2002/01/29 11:58:45; author: knu; state: Exp; lines: +4 -4 Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command; the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command.
v. 1.7 date: 2001/05/25 14:58:05; author: lioux; state: Exp; lines: +28 -6 1) Install leapsecs.dat (leapseconds support) 2) Add PKGMESSAGE with additional FreeBSD specific installation information 3) Install sample startup script 4) Bump PORTREVISION due to (1) PR: 27617 Submitted by: Vivek Khera
v. 1.6 date: 2001/02/22 17:22:39; author: lioux; state: Exp; lines: +4 -2 Add new MASTER_SITES
v. 1.5 date: 2001/01/16 19:08:35; author: will; state: Exp; lines: +1 -7 Update to sync with bsd.port.mk rev 1.361 - use PORTDOCS that is now in bsd.port.mk, for easy removal of documentation. I left alone one port - japanese/elisa8x8 (or something like that), because it appeared to have some rather weird way of doing PORTDOCS substitution.
v. 1.4 date: 2001/01/16 17:32:26; author: sobomax; state: Exp; lines: +3 -3 Massive style enforcement - use ^I instead of spaces for variables identation.
v. 1.3 date: 2000/11/20 14:48:56; author: lioux; state: Exp; lines: +2 -1 Submitted by: sobomax Bump PORTREVISION according to Revision 1.2 of both files/patch-ac and pkg-plist.
v. 1.2 date: 2000/10/03 05:12:39; author: lioux; state: Exp; lines: +2 -2 Maintainer is now a committer, update email accordingly Approved by: will
v. 1.1 date: 2000/07/07 14:30:01; author: sobomax; state: Exp; Add clockspeed - a program which uses a hardware tick counter to compensate for a persistently fast or slow system clock. It also could be used to synchronize time across LAN or WAN. PR: 19349 Submitted by: Mario Sergio Fujikawa Ferreira =============================================================================



Main menu

FreeBSD

Program categories

Freebsd accessibility
Freebsd archivers
Freebsd astro
Freebsd audio
Freebsd benchmarks
Freebsd biology
Freebsd cad
Freebsd chinese
Freebsd comms
Freebsd converters
Freebsd databases
Freebsd deskutils
Freebsd devel
Freebsd dns
Freebsd editors
Freebsd emulators
Freebsd finance
Freebsd french
Freebsd ftp
Freebsd games
Freebsd german
Freebsd graphics
Freebsd hebrew
Freebsd hungarian
Freebsd irc
Freebsd japanese
Freebsd java
Freebsd korean
Freebsd lang
Freebsd mail
Freebsd math
Freebsd mbone
Freebsd misc
Freebsd multimedia
Freebsd net
Freebsd net-im
Freebsd net-mgmt
Freebsd net-p2p
Freebsd news
Freebsd palm
Freebsd polish
Freebsd ports-mgmt
Freebsd portuguese
Freebsd print
Freebsd russian
Freebsd science
Freebsd security
Freebsd shells
Freebsd sysutils
Freebsd textproc
Freebsd ukrainian
Freebsd vietnamese
Freebsd www
Freebsd x11
Freebsd x11-clocks
Freebsd x11-drivers
Freebsd x11-fm
Freebsd x11-fonts
Freebsd x11-servers
Freebsd x11-themes
Freebsd x11-toolkits
Freebsd x11-wm