Nanoseconds
Sun's version of date does not allow the display of nanoseconds.
But if one needs to do so one can use this handy perl one-liner:
perl -e 'use Time::HiRes qw(gettimeofday); print gettimeofday(),"\n";'
found on: http://perldoc.perl.org/Time/HiRes.html#EXAMPLESexternal link
Posted at
05:59PM Mar 10, 2009
by Felix Baumann in Sun |