- or download this
-s, --sleep-interval=S
with -f, sleep for approximately S seconds (default 1.0) between ite
+rations
- or download this
# generate test log file in bash
$ while true ; do echo $(( ++i )) ; sleep .1 ; done > test
- or download this
# little File::Tail demo
use Time::HiRes qw( gettimeofday );
...
( $sec_since_epoch, $usec ) = gettimeofday();
printf "%d.%d\n", $sec_since_epoch, $usec;
}