added a utility to driver that can calculate if a log should be written or not. changed logging to milliseconds