Subject: | support for Time::Hires |
Date: | Thu, 2 Jan 2014 14:47:04 -0500 |
To: | bug-Test-MockTime [...] rt.cpan.org |
From: | Michael Hamlin <myrrhlin [...] gmail.com> |
howdy,
Test:MockTime is really useful, thank you.
unfortunately it doesn't work with Time::HiRes, which we do use in places
(this morning's example was getting a hires time for a postgres timestamp).
i saw :MockTime works by replacing CORE::time, but naturally :HiRes doesn't
use that. It appears to use the system's gettimeofday, and is written in
XS, I think. Not sure how to make :MockTime hook into that, but it would
be helpful.
cheers, and thanks again,
michael