Made clock_gettime use more accurate time measuring method.

CLOCK_MONOTONIC seems inaccurate and not depend on the speed of execution of program compared to CLOCK_PROCESS_CPUTIME_ID, so going back ot using the latter.