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

Re^3: Epoch time in milliseconds: Is there a better way?

by Xilman (Hermit)
on Nov 25, 2008 at 12:31 UTC ( [id://725831]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Epoch time in milliseconds: Is there a better way?
in thread Epoch time in milliseconds: Is there a better way?

If all you want is "minute or two" accuracy, you don't need a hires timer. Just set the milliseconds portion of your string to '000'. You are still two orders of magnitude better accuracy than the spec calls for.
  • Comment on Re^3: Epoch time in milliseconds: Is there a better way?

Replies are listed 'Best First'.
Re^4: Epoch time in milliseconds: Is there a better way?
by logan (Curate) on Nov 25, 2008 at 20:34 UTC
    It's true, I don't actually need real accuracy for the script to work, but my feeling is that having an accurate timestamp can't hurt. Also, I may want/need to use the data at some point in the future so I might as well do it right the first time.

    -Logan
    "What do I want? I'm an American. I want more."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found