gettime: check affinity for thread, if we have it