This reverts commit 0adff0af20c7d9bae8bd8bdf402506c10369ead1. Breaks the GPU build
Add a `clock_gettime` emulation layer and use it to implement the `time` entrypoint. For windows, the monotonic clock is emulated using `QPC`. The realtime clock is emulated using `GetSystemTimePreciseAsFileTime`.