Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Timer subtraction

by Cristoforo (Curate)
on Jan 14, 2018 at 23:00 UTC ( [id://1207239]=note: print w/replies, xml ) Need Help??


in reply to Re: Timer subtraction (updated)
in thread Timer subtraction

Hi haukex,

I was using your code and found a problem with different duration parameters.

my $first = "01:25:52:421"; my $last = "01:26:29:369";
For this example the seconds and milliseconds in the $last variable have lesser amounts than in the $first variable. The program hangs and will not complete. It only executes the first two print statements. The result should be 00:00:36:948.

I don't know what can be done to get the program to run to completion (and execute the third print).

I've been working on this for several days, reading the docs for DateTime::Format::Duration and can't find the answer there - maybe I don't understand it well.

Replies are listed 'Best First'.
Re^3: Timer subtraction
by haukex (Archbishop) on Jan 15, 2018 at 09:35 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-03-28 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found