I just posted some example code these days of gathering the time log. The csv writing will remain as exercise.