open(TIMELOG,"; close(TIMELOG); if (time < $stored_time) { ... do something because time now is earlier than stored }