add a timer as profiler.