Re: Time::HiRes Pseudo-bug
[email protected] (Joshua N Pritikin) Tue, 6 Apr 2004 21:11:55 +0530
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 05, 2004 at 11:59:40AM -0400, Jerry D. Hedden wrote:
> Again, to keep this from affecting my application, I had to edit
> Event.pm to not use Time::HiRes. Is there another way to turn off
> using Time::HiRes in Event? If not, I'd like to request adding one.
Just call Event::install_time_api() before Event gets a chance to
probe for Time::HiRes. Like this:
BEGIN {
require Event;
Event::install_time_api();
Event->import(qw(...));
}
--
A new cognitive theory of emotion, http://openheartlogic.org
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAcs/DqcqnlKSmC70RAiphAKCZ5ZmlVgj1k2opLShFczj4cTC91gCgipWY MDJ7TOryNK/fpyJOJFGCkM0= =BWW+ -----END PGP SIGNATURE-----