Measure on time

Ok.

If you look at this topic, I'm sure you will see a few similarities with your code and your question.