Fix 0 TPS and Infinity time/tick with periodic profiling disabled.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>