add time thread