How Long a process runs for ?

Freddie Ruddick frederific at
Sat Sep 22 14:21:52 UTC 2007

On Saturday 22 September 2007 14:50:26 Rick wrote:
> Is there a way to find out how long a application ran for ?

It's  not ideal, but you could write a short shell script. Something 
like this:

#! /bin/bash
echo -n "Started:" > ~/howlong
date >> ~/howlong
echo -n "Completed:" >> ~/howlong
date >> ~/howlong

Make it executable, then run that script instead of your command. This 
will create a file called howlong in your home directory, with the 
start and end times of the command.

There's probably an easier way, but I don't know it


More information about the ubuntu-users mailing list