Improved API for custom time counters

Will ignore nested calls to the same counter