use functional form of time()