Python code which can read the timer for 1 frame