This script add simple timer. Type "Timer()" in console to show window.
Set time by scrolling over number label then press S to start, P to pause and R to reset time.
By default when timer expire it set game to pause, but it possible to set custom function by calling timer wtih "Timer(function)"
Download: