Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Timer subtraction

by Cristoforo (Curate)
on Jan 14, 2018 at 23:00 UTC ( #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 (Bishop) on Jan 15, 2018 at 09:35 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2020-10-01 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (13 votes). Check out past polls.

    Notices?