added timer helper functions.