Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

[perl6] Time::HiRes::time()

by syphilis (Bishop)
on Mar 10, 2019 at 11:42 UTC ( #1231091=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1231091]
Approved by johngg
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2020-09-29 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (146 votes). Check out past polls.

    Notices?