Time measurement is only done when special build flag is enabled. It should be possible to specify at runtime if time should be stored. The code for time measurement should be always available and only result should be only stored when handler is set (by default the empty handler should be installed).