Is it possible to set a timer for a running application and save that data somewhere global?
I am doing some volunteer work in an internet cafe where kids are the main users and we would like to get them to do tux math for 10 minutes which they don't do because of the many distractions on the internet.
So I was wondering if getting the amount of time an application has been run is possible.
Change the shortcut used by the kids to call a bash script, with the time command in it:
time /bin/yourprogram
Then do something with the output of time in the script, such as write the value to a text file or something.
Ok, maybe a different approach: Create a user, that is allowed ONLY to use TuxMath. No Mozilla, no Totem, nothing, except TuxMath. After 10 minutes, You will change thieir priviliges to use other soft, or give them password to different user that is allowed to do other stuff.