Chaoui05 has asked for the wisdom of the Perl Monks concerning the following question:
Many Thanks !!sub Start_timer : Test(startup) { my $start = time(); cprint "#\x037Started at ", (strftime '%A %d %B %Y %H:%M:%S',localti +me($start)), "\x030\n"; } sub End_timer : Test(shutdown) { #my $start; my $end = time; cprint "#\x037Ended at ", (strftime '%A %d %B %Y %H:%M:%S', localtim +e($end)),"\x030\n"; cprintf "#\x035 Total run time=>", $end-$start, " seconds\n"; cprintf ("%02d:%02d:%02d\x030\n",(gmtime($end-$start))[2,1,0]); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recover a variable from a function
by Ovid (Cardinal) on May 19, 2016 at 10:32 UTC | |
by Chaoui05 (Scribe) on May 19, 2016 at 10:43 UTC | |
|
Re: Recover a variable from a function
by Corion (Patriarch) on May 19, 2016 at 07:24 UTC | |
by Chaoui05 (Scribe) on May 19, 2016 at 07:45 UTC | |
by Chaoui05 (Scribe) on May 19, 2016 at 08:36 UTC | |
by Corion (Patriarch) on May 19, 2016 at 08:47 UTC | |
by Chaoui05 (Scribe) on May 19, 2016 at 09:12 UTC | |
|
Re: Recover a variable from a function
by haukex (Archbishop) on May 19, 2016 at 07:35 UTC | |
by Chaoui05 (Scribe) on May 19, 2016 at 07:49 UTC | |
by haukex (Archbishop) on May 19, 2016 at 08:22 UTC | |
by Chaoui05 (Scribe) on May 19, 2016 at 08:40 UTC | |
by haukex (Archbishop) on May 19, 2016 at 08:44 UTC | |
| |
|
Re: Recover a variable from a function
by Laurent_R (Canon) on May 19, 2016 at 09:41 UTC | |
by Chaoui05 (Scribe) on May 19, 2016 at 14:19 UTC |