Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Calculating time between two events in a log.

by perlguyjoe (Novice)
on Aug 13, 2013 at 17:09 UTC ( [id://1049319]=note: print w/replies, xml ) Need Help??


in reply to Re: Calculating time between two events in a log.
in thread Calculating time between two events in a log.

Thanks Ken, and sorry to everyone about my bad post format I have cleaned it up. Your example would work great but I am limited in what modules I can use and Timepiece is not one of them. I should have clarified that. Additionally, the time could be measured in milliseconds or seconds. I am trying to report on the delay which sometime creeps upwards of 30 seconds or more. Any other ideas are welcome, and thanks in advance!
  • Comment on Re^2: Calculating time between two events in a log.

Replies are listed 'Best First'.
Re^3: Calculating time between two events in a log.
by kcott (Archbishop) on Aug 14, 2013 at 05:09 UTC
    "Your example would work great but I am limited in what modules I can use and Timepiece is not one of them. I should have clarified that."

    You still can clarify that with an update to your OP explaining the constraints you're working under. I have no idea whether:

    • this is schoolwork and you need to demonstrate that you understand date/time manipulation
    • you didn't know that Time::Piece (builtin) has been included with Perl since version 5.10.0
    • you have a version of Perl prior to 5.10.0 and have some restriction on using CPAN
    • you were unaware that you could install Time::Piece from CPAN
    • there is some other limitation involved

    For future reference, please consider including this type of information when you first post. While we're happy to help, we don't really like hearing: "Your solution is useless to me because of something I'm not telling you about.".

    -- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found