Use get_real_time to make sleep() more accurate. Another attempt at fixing the thread switch test. Didn't help there, but is probably a good thing anyway.