> Alternatively you could just test for it in places where it would be
> useful (which are ...?):
>
> if ($INC{'Time/HiRes.pm'}) {
> # Work in HiRes
> }
The only place it matters inside DT (from_epoch) already supports it.
> This means that if the user has loaded Time::HiRes, then we can use
> it. Otherwise we dont.
That doesn't make it very easy to say "I want an object that represents the time
'right now' with sub second resolution".
What I'm proposing is like the Net::Ping syntax but at the class level.
# High precision syntax (requires Time::HiRes)
$p = Net::Ping->new();
$p->hires();
--
DateTime->hires( 1 );
my $dt = DateTime->now;
-J
--