Add method to get running time in ticks