Changed the way that time is computed for periodic threads to match Ivory.