adds time measurements
example for work with lambda functions