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?
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: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org