Add time profiling