cross platform high performance monotonic clock