Fri, 06 Jul 2007, by [EMAIL PROTECTED]:

>  I need a simple program which counts the elapsed time starting from
> a given point. Could you give some suggestions?

Another way would be to create one file at the start time and another at
the end time, then calculate the differences in the creation times, e.g.,

touch startfile
(time marches on)
touch finishfile

#output files' mod times in seconds since Epoch's begin; pipe to bc
echo $(stat -c %Y finishfile)-$(stat -c %Y startfile) | bc


#clean up
rm startfile finishfile

The above could go into a script with prompts or you could play around
with glade, a nifty GUI front-end builder.  Building GUI front-ends
isn't that tough on Tk either.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to