Skip Menu |

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics
Id: 33822
Status: resolved
Priority: 0/
Queue: Time-HiRes

People
Owner: Nobody in particular
Requestors: M.Engrie [...] sanoma-magazines.be
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
It unfortunately means that Windows platform does not implement the ITIMER_VIRTUAL functionality, and therefore Time::HiRes cannot use that. You may need to use some Win32 specific module instead, try asking in ActivePerl forums.