Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Convert time in seconds to hh::mm::ss

by bangor (Monk)
on Mar 16, 2016 at 02:56 UTC ( [id://1157898]=note: print w/replies, xml ) Need Help??


in reply to Convert time in seconds to hh::mm::ss

From looking at the link provided by 1nickt I was able to double the speed for times less than 60 seconds (of which there are many) just by adding this line:
return sprintf("00:00:%02d", $seconds) if $seconds < 60;

Replies are listed 'Best First'.
Re^2: Convert time in seconds to hh::mm::ss
by GrandFather (Saint) on Mar 16, 2016 at 05:28 UTC

    Did that make any significant difference at all to the page fetch time?

    Benchmarking becomes interesting after profiling tells you where the significant hot spots are.

    Premature optimization is the root of all job security

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2026-03-09 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.