Perl Script command line for time duration

I am looking for the command line to include in perl script for printing the time taken for simulation. Can anyone please share the same?