New monotonic timer implementation
Import cleanups and use monotonic clock