Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
33822
Status:
resolved
Priority:
Low/Low
Queue:

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

BugTracker
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>
Disclaimer
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

 
 
 

Sanoma Magazines Belgium N.V./S.A., Telecomlaan 5-7, 1831 Diegem, BTW/TVA BE 0404.802.477, RPR/RPM Brussel / Bruxelles
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.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.