Update to offset code to use millisecond resolution