You mean like to debug an entire operating system?
Or to debug an app inside an operating system (kinda like edge now runs in win 10)?
How about trying some convoluted means of time measurement, for example,
lock a Mutex and than try to lock it again with a call that times out after 1sec or so.
And than always compare the result to what you get from the rdtsc.
i.e. try to compare different timing sources, unless you would debug the entire os and modify all timing sources to keep them in sync that would be a way to detect something is wrong.
Of cause comparing against a server time would also be an option but well that needs a network connection.
|