Changeset 8154 for lang/perl/App-MadEye
- Timestamp:
- 03/19/08 20:07:45 (9 months ago)
- Files:
-
- 1 modified
-
lang/perl/App-MadEye/trunk/lib/App/MadEye/Util.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/App-MadEye/trunk/lib/App/MadEye/Util.pm
r8149 r8154 10 10 use List::Util qw/first/; 11 11 use YAML (); 12 use Time::HiRes qw/gettimeofday/; 12 13 13 14 sub timeout($$&) { ## no critic. … … 18 19 local $SIG{ALRM} = sub { die "Time out error: $msg" }; 19 20 $last_alarm = alarm $secs; 20 $code->(); 21 22 my $start_time = gettimeofday(); 23 $code->(); 24 App::MadEye->context->log('debug' => "stopwatch: " . (gettimeofday() - $start_time)); 21 25 }; 22 26 if ($@) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)