Made timer globals to prevent them to be optimised by the compiler