http://www.perlmonks.org?node_id=1231091

syphilis has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
Does perl6 have an equivalent to Time::HiRes::time() ?
I couldn't find it.

As with perl5, I found a time() function that provides a granularity of 1 second, but I'm looking for something with at least 1 millisecond granularity.

Cheers,
Rob

Replies are listed 'Best First'.
Re: [perl6] Time::HiRes::time()
by duelafn (Vicar) on Mar 10, 2019 at 21:12 UTC

    An Instant has subsecond granularity

    > now.Num 1552252180.0850801

    Good Day,
        Dean