my $beginning_time = time(); # Then run all my commands and stuff... my $ending_time = time();