Subject: | doesn't seem to work at all |
Am I doing something wrong here? This takes zero seconds in Linux on
both Debian Squeeze (perl 5.10.1) and CentOS 5.3 (perl 5.8.8). Is this
unsupported in Linux? Because I have man pages for clock_nanosleep etc.
--mark--
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use English '-no_match_vars';
use Time::HiRes qw( usleep );
my $start = time;
usleep(1000 * 10);
my $end = time;
my $took = $end - $start;
print "took $took seconds.\n";