Ruby script to track time spent in window