I've seen this post on using Timer:
Accurate timing of functions in python
And while it does get the time for a known operation... I need something slightly different.
I want:
- execute a function + start a timer
- allow function to run
- if function completes < X milliseconds: no error
- if function completes >=X milliseconds: ERROR "expected time constant exceeded"