library for inplace timing measurements