Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: The most precise second (timer)

by jcb (Parson)
on Nov 27, 2019 at 23:14 UTC ( [id://11109341]=note: print w/replies, xml ) Need Help??


in reply to The most precise second (timer)

Instead of time(), have you tried clock_gettime(CLOCK_MONOTONIC) from Time::HiRes? The monotonic clock isn't adjusted by NTP and simply counts from some unspecified time in the past.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-24 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found