1. 11 Feb, 2013 4 commits
    • Alessandro Rubini's avatar
      tools: added chktime · c7cc61d8
      Alessandro Rubini authored
      This program monitors clock_monotonic and clock_realtime every 10ms
      (or a different time lapse passed on the command line).
      
      Whenever the difference between them is more than 0.5ms apart from the
      previously-reported difference, it prints the current difference.  All
      such differences are relative to the initial offset of the two clocks,
      when the program started. The difference is prefixed with the current
      date and time, to help logging.
      
      This is something I already had in my toolbox, so I could see the leap
      second that occurred on Jun 30th 2012.
      
      Example:
         tornado.root# ./tools/chktime &
         [1] 23761
         ./tools/chktime: looping every 10 millisecs
      
         tornado.root# ./tools/jmptime .003
         Requesting time-jump: 0.003000 seconds
      
            13-02-11-12:22:44:       2997 us
      
         tornado.root# ./tools/jmptime .003
         Requesting time-jump: 0.003000 seconds
      
            13-02-11-12:22:52:       5994 us
      
         tornado.root# ./tools/jmptime -.006
         Requesting time-jump: -0.006000 seconds
      
            13-02-11-12:22:58:        -10 us
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c7cc61d8
    • Alessandro Rubini's avatar
      tools: added jmptime · 8a564d12
      Alessandro Rubini authored
      Like adjtime (previous commit), this is used to adjust the local time,
      but in this case the program performs a time jump (warp) using
      settimeofday().
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      8a564d12
    • Alessandro Rubini's avatar
      tools: added adjtime · cfd8a834
      Alessandro Rubini authored
      This simple tool requests a time adjustment, specified in seconds
      expressed as a floating point values ("0.001", "-.2", "-4" ...).
      
      It can be used to force time differences between hosts while checking
      how ppsi (or other time daemons) work.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      cfd8a834
    • Alessandro Rubini's avatar
      trivial: tools/.gitignore · 4a05e2de
      Alessandro Rubini authored
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      4a05e2de
  2. 10 Feb, 2013 36 commits