> $dt = DateTime->now_high_res();or $dt = DateTime->now( high_res=>1 );
Thats a possibility too. Although to me that syntax would seem to guarantee HiRes support to be available. I don't know if we want add Time::HiRes as a dependency.
Yup, it does have that effect and I'd prefer not to have extra dependencies.
How about just using it if the user has it installed? So if I don't have it, I get 20:31:59 and if I do have it I get 20:31:59.2334987324 in the call to now(high_res=>1). (of course we should probably thow a warn if its not installed and its called)
OTOH, maybe I dont understand how your DateTime->hires( 1 ) call would work without adding HiRes as a dependency.
Cheers! Rick
--
--------------------------------------------------------
There are 10 kinds of people:
those that understand binary, and those that don't.
--------------------------------------------------------
The day Microsoft makes something that doesn't suck
is the day they start selling vacuum cleaners
--------------------------------------------------------
"Write a wise proverb and your name will live forever."
-- Anonymous
--------------------------------------------------------
