Time::HiRes
Published on 30 Nov 2007Tags #Perl
This modules provides high resolution timers.
-
Import:
use Time::HiRes qw(time sleep);
overwrites perl’s vanilla routinestime
andsleep
to support fractions of seconds -
Get the number of seconds since the epoch with fractions:
print time . "n"; # 1073086495.43659
-
Sleep for fractions of seconds:
sleep(2.5);