My First Object-Oriented Module

Two years ago I wrote my first object-oriented module, Timerecorder. It's a crude stopwatch which I apply to various parts of a script.

    use Timerecorder;
    my $tr = Timerecorder->new;
    $tr->start_recording();
    $tr->record_time('check_dir_structure');
    $tr->stop_recording();
    $tr->print_to_stats_file("$this_key");
    $tr->print_overall_time();

Previous Back to start of show Next
Slide: 30 timerecorder © 2003 James E. Keenan