Felix' blog

search
feeds
links
Tuesday Mar 10, 2009

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

Comments:

Post a Comment:
Comments are closed for this entry.