The timer starts counting as soon as you press any key.
What timer?
At the end of the level, you can see how long you took to beat it.