Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by Xilman (Friar)
on Nov 25, 2008 at 12:31 UTC ( #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?
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
Node Status?
node history
Node Type: note [id://725831]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-08-31 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls