Help for this page

Select Code to Download


  1. or download this
    $self->{start} = $self->{start} || gettimeofday():
    
    ...
    
    my $end = gettimeofday();
    $self->{duration} += ($end - $self->{start});
    
  2. or download this
    $self->{tests}{test_name} = $duration;