Actually import time module and save timestamp to file.