add timer to logger example