fixing time problem where seconds weren't taken into account from clock_gettime