Timer::HiRes interval timers
am 21.12.2008 07:28:43 von MikeThis is a multi-part message in MIME format.
--===============1142236349==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0064_01C9630B.768C0E10"
This is a multi-part message in MIME format.
------=_NextPart_000_0064_01C9630B.768C0E10
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I'm using perl 5.10 with Tkx and am trying to implement an interval
timer on my Win32 (XP) box. After reading the documentation, I'm only
attempting to use the ITIMER_REAL because I'm on a Win32 platform.
my "dumbed down" code:
use Time::HiRes qw( setitimer ITIMER_REAL );
$SIG{ALRM} = sub { print time, "\n" };
setitimer(ITIMER_REAL, 10, 2.5);
Results in this error:
Your vendor has not defined Time::HiRes macro ITIMER_REALPROF...
Any insight is appreciated.
Thanks,
Mike
------=_NextPart_000_0064_01C9630B.768C0E10
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
charset=3Dus-ascii">
using perl 5.10=20
with Tkx and am trying to implement an interval timer on my Win32 (XP)=20
box. After reading the documentation, I'm only attempting to =
use the=20
ITIMER_REAL because I'm on a Win32 platform.
"dumbed down"=20
code:
ITIMER_REAL=20
);
"\n"=20
};
setitimer(ITIMER_REAL, 10, 2.5);
error:
vendor has not=20
defined Time::HiRes macro ITIMER_REALPROF...
insight is=20
appreciated.
------=_NextPart_000_0064_01C9630B.768C0E10--
--===============1142236349==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1142236349==--