You are not logged in.
Pages: 1
Hello,
I need some sort of timing application, something like a stopwatch. I would be running multiple instances and be able to pause them individually etc. Any ideas?
Thanks.
Last edited by RAH (2008-08-05 11:25:43)
Offline
How 'fancy' do you need it to be? Do you need to see the seconds ticking away, or just the final time?
Absolute most basic thing you can do would be open a terminal, then enter the command:
time read -p "Press enter to stop"
That will start the clock, then when you press enter again, it will stop the clock and show you the elapsed time next to the row labelled "real"
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thanks - that's a really handy command you have there. Is there anyway of pausing/resuming instead of just stopping it?
Offline
Be yourself, because you are all that you can be
Offline
Thanks but I'm not really looking for a widget.
Offline
Thanks - that's a really handy command you have there. Is there anyway of pausing/resuming instead of just stopping it?
No
(Not that I'm aware of anyway!)
You could do a hack:
time read ; time read
When you stop the first one, the second will immediately start, then you'll have the time of the first, time of the second, and you can add the 2 together to get the total.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Someone at the NIST actually has a nice simple (TCL) script that's a simple, visual stopwatch. I think it's what you're looking for. I have it in the AUR: http://aur.archlinux.org/packages.php?ID=14399
You can run multiple instances of it and within each one take multiple time recordings, stop, restart, or clear both a total and a "lap" timer. I use it for everything stopwatch-related that I need.
Offline
I thought he was not looking for a GUI app. I tried giving him a similar code too
Be yourself, because you are all that you can be
Offline
The commands which fukawi2 provided should do the job for the most part. Thanks everyone.
Offline
I thought he was not looking for a GUI app. I tried giving him a similar code too
He had not said so, but based on what he decided to use it would seem that you're correct.
Offline
Pages: 1