Help for this page

Select Code to Download


  1. or download this
    
    use Benchmark;
    ...
    
       my $compute_time = timediff($end_time, $start_time);
    }
    
  2. or download this
    use Time::HiRes qw(gettimeofday tv_interval);
    
    sub handler {
    ...
    
       my $compute_time = tv_interval($start_time_t,$end_time_t);
    }