[ADD] Added configure option to enable time measurements only in unit-tests
[ADD] Added time measurement unit-tests