Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Calculate clock ticks since a given date

by ikegami (Pope)
on Oct 26, 2012 at 05:56 UTC ( #1000998=note: print w/replies, xml ) Need Help??


in reply to Calculate clock ticks since a given date

>perl -E"use bignum; use Time::HiRes qw( time ); say( (10000000 * time +) + 621355968000000000 );" 634868277695085200

Replies are listed 'Best First'.
Re^2: Calculate clock ticks since a given date
by kurgan (Sexton) on Oct 26, 2012 at 06:34 UTC

    This worked great! Thank you.

    Unfortunately, this being done on and old Win32 box, it seems I am not going to get the full 18 digit number no matter what I do.

    I had completely blocked out Time::Hires. Again, thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000998]
help
Chatterbox?
[choroba]: I'm just repeating some else's words as I remembered them after having asked the same question
[choroba]: s/some/someone/
Discipulus what a pity all people do not speak only in eatalian..
[choroba]: we'd need video calls more often :)
[Discipulus]: i still suspect english has some logical 'curvature/ crookedness' that has and will have a big impact over programming
[Discipulus]: if you refere to gestures ++choroba
Discipulus still has problem with 'until' beyond simplest cases
[choroba]: ;-)
[Discipulus]: and larry studied natural languages too
[choroba]: Czechs have problems with unless

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-05-27 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?