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