Counting operating time

This might be of some help: