Add wrapper function providing a precise, time-based counter.