Help for this page

Select Code to Download


  1. or download this
    use Time::HiRes qw/clock_gettime CLOCK_MONOTONIC/;
    my $start_time_s = clock_gettime(CLOCK_MONOTONIC);
    ...
    my $run_time_s = clock_gettime(CLOCK_MONOTONIC) - $start_time_s;