in reply to Time::HiRes::time() Bug on Cygwin
NOTE 1: This higher resolution timer can return values
either less or more than the core time(), depending on
whether your platform rounds the higher resolution timer
values up, down, or to the nearest second to get the core
time(), but naturally the difference should be never more
than half a second.
Cheers - L~R#!/usr/bin/perl use strict; use warnings; use Time::HiRes 'usleep'; while (1) { print "Core : ", CORE::time, "\n"; print "HiRes: ", Time::HiRes::time, "\n\n"; usleep (60_000_000); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Time::HiRes::time() Bug on Cygwin
by jdhedden (Deacon) on Apr 04, 2004 at 15:41 UTC |