Change from usleep and gettimeofday to clock_nanosleep and clock_gettime

UCC git Repository :: git.ucc.asn.au