I am trying to use Time::HiRes.pm and I use Mike's post as a reference:
But I got this error:
My perl is 5.8.4 on solaris 10. The version of HiRes.pm is 1.59. I noticed that HiRes.pm does not have subroutine clock() implemented. Does it mean this subroutine is no longer used? What's the alternative way then?
Thanks.
Code:
# Mike's code
use Time::HiRes qw( clock );
my $clock0 = clock();
[your code here]
my $clock1 = clock();
my $clockd = $clock1 - $clock0;
But I got this error:
Code:
"clock" is not exported by the Time::HiRes module
Can't continue after import errors at tt.pl line 1
BEGIN failed--compilation aborted at tt.pl line 1.
My perl is 5.8.4 on solaris 10. The version of HiRes.pm is 1.59. I noticed that HiRes.pm does not have subroutine clock() implemented. Does it mean this subroutine is no longer used? What's the alternative way then?
Thanks.