Gauge time of running tasks
Refactoring