This is the approach I have chosen to create a simple bash script
which acts as a counter.
http://bashscripts.org/viewtopic.php?t=401
On 7/9/07, Theo v. Werkhoven
Fri, 06 Jul 2007, by cristeab@gmail.com:
I need a simple program which counts the elapsed time starting from a given point. Could you give some suggestions?
STARTTIME=$( date +%s ) <do something> ENDTIME=$(date +%s)
ELAPSETIME=$((ENDTIME - STARTTIME))
Working out minutes and hours is left as exercise for the reader, as usual.
Otherwise Python and Perl have easy to use modules to do these things.
Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 10.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.18 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- Cristea Bogdan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org