Fixed write to file format.

Replaced time.time with datetime.now for the time-stamp in the log. Elapsed time is still time.time.