Measure your working time on windows

Posted by Jens Jäger on October 19, 2009

For measure working time on windows I wrote a little script. It calculates the time since the last login. The output of the script looks like this:

The script is written in Ruby and runs under cygwin. I saved the script in a folder tools in my homedir and have the following alias in my .bashrc:

So finally the script looks like this:

Known issues:

The script is based on the windows command systeminfo. Systeminfo returns values in the language of the operating system. So this works only with a german windows. Replace “Systembetriebszeit” with whatever your systeminfo command returns for the uptime.


Workingtime.rb moves to github. Follow the installation instructions there.


Use this link to trackback from your own site.


Leave a response


Information about Data protection