Thread Laufzeit bestimmen (13 answers)
Opened by BungeeBug at 2004-07-25 16:43

sri
 2004-07-26 15:48
#84920 #84920
User since
2004-01-29
828 Artikel
BenutzerIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
my $stamp = time;
# do stuff
my ($usr, $sys) = (times)[0,1];
my $cpu = $usr + $sys;
my $wallclock = time - $stamp;


Mein Parrotbench [cvs.perl.org] ist wohl ein gutes Beispiel wie man times() noch einsetzen kann.

View full thread Laufzeit bestimmen