Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: processing timelog

by Anonymous Monk
on Aug 24, 2014 at 11:45 UTC ( [id://1098456]=note: print w/replies, xml ) Need Help??


in reply to Re^2: processing timelog
in thread processing timelog

the total time is almost figured out ; i cant seem to think of a way to get process time without writing inefficient & repetitive code :(

Congratulations, you are about to start programming, start naming subroutines, subroutines that take arguments and return values, and die on critical errors (like can't open file), subroutines with meaningful names that make sense in the context of your application, subroutines whose names are part of your application vocabulary/glossary

perlintro#Writing subroutines and http://learn.perl.org/books/beginning-perl/ Chapter 8: Subroutines

Replies are listed 'Best First'.
Re^4: processing timelog
by sandy105 (Scribe) on Aug 25, 2014 at 08:10 UTC

    i know and i have used subroutines , and i am writing subroutines for converting datetime to proper time , but cant figure out how to add up the process time

    right now i am calculating total time separately and individual times by appending each process time to an hash with id as key and then consolidating ..i just cant figure out a elegant way that's it.thats why asked for help .any ideas or pseudocode would help

Log In?
Username:
Password:

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

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

    No recent polls found