master:
1) removed tmpBuffer
2) replaced transformations with specific functions
3) calc time with delemiting by TIMES_TO_REPEAT