Improved time tracking with clock() instead of tic; toc