santosh_vjit has asked for the wisdom of the Perl Monks concerning the following question:
I have nearly 100 events which tirgger for every 2- 10mins range i need to calculate execution time of each event and how many times it triggerd
This is not helping my cause Can any one please help mesub test { my $start_time = time; print USAGE_FH "\n".$IP.",$event_name,".$start_time.","; ----------- code for execution ----------- my $endtime = time; my $diff_time = $endtime - $start_time; print USAGE_FH $endtime.",".$difftime; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Subroutine execution time
by chromatic (Archbishop) on Dec 24, 2010 at 17:20 UTC | |
|
Re: Subroutine execution time
by afoken (Chancellor) on Dec 24, 2010 at 11:52 UTC | |
|
Re: Subroutine execution time
by Bor (Beadle) on Dec 24, 2010 at 12:13 UTC | |
|
Re: Subroutine execution time
by JavaFan (Canon) on Dec 24, 2010 at 11:51 UTC | |
|
Re: Subroutine execution time
by tomfahle (Priest) on Dec 25, 2010 at 08:17 UTC |