import time. How did I miss that. fixes #370 #373