Add global timer utils

Global timers can be used to accumulate timings of the same context
in a thread-safe way.
Add extensive timing and mute logging