Make timer functions independent on `this`

Closes #1