fixing bug how execution time is calculated