at case of Time::HiRes$start = [times()]; ...somecode... $end = [times()]; $time_diff =($start->[0] + $start->[1]) - ($end->[0] + $end->[1]);
But if real <=> sys+user, my first case will be always lower that at case 2$start=[gettimeofday]; ...somecode... $end = [gettimeofday]; $time_diff = tv_interval($start, $end);
In reply to Re^2: Timer implementation
by bash
in thread Timer implementation
by bash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |