Subject: | Bug report |
Date: | Wed, 5 Mar 2008 11:21:05 +0100 |
To: | <bug-Time-HiRes [...] rt.cpan.org> |
From: | <M.Engrie [...] sanoma-magazines.be> |
Hello,
I am running Perl 5.8.8 from ActiveState on Windows XP & Server 2003.
Using PPM I installed Time-HiRes and got the latest version 1.9712.
Before starting to program using the Time::HiRes module, I tried the
simple program provided in the Time::Hires page on CPAN
# Arm an interval timer to go off first at 10 seconds and
# after that every 2.5 seconds, in process virtual time
use Time::HiRes qw ( setitimer ITIMER_VIRTUAL time );
$SIG{VTALRM} = sub { print time, "\n" };
setitimer(ITIMER_VIRTUAL, 10, 2.5);
Running this using the simple command
C:\ perl timer.pl
I get the error message
"Your vendor has not defined Time::HiRes macro ITIMER_VIRTUAL, used at
timer.pl line 7."
Searching forums and via google did not give any answer on this. So, is
this a bug?
Regards
Marc Engrie
ICT Services Manager
Sanoma Magazines Belgium
Telecomlaan 5-7
1831 Diegem
Tel: +32 2 776 21 63
Fax: +32 2 776 23 45
GSM: +32 476 52 35 45