4 ms·
Would it have been possible for Microsoft to test for something like this, or would it be possible today? For example, is it feasible to slow down time to simul
by Wowfunhappy 6y ago
Would it have been possible for Microsoft to test for something like this, or would it be possible today? For example, is it feasible to slow down time to simulate an impossibly-fast CPU?
- traverseda 6y agoYou can do that for linux userpace apps using the "faketime" utility. It just intercepts that calls that try to find out the actual system time. Not sure how that would effect kernalspace, since the kernal is sort of the thing that decides what time actually is.
- Wowfunhappy 6y ago> Not sure how that would effect kernalspace, since the kernal is sort of the thing that decides what time actually is. Yes, I'm imagining you'd need to be in a virtualized/emulated environment of some sort.
- londons_explore 6y agoThe reverse (speeding up time) is done pretty frequently to check software for bugs that might only occur after its been running for a few years. It finds things like "The daily check for updates leaves a few logfiles, and after 30 years there are enough logfiles that the disk is full". Normally you need to fake or mock all time related API's.
- quickthrower2 6y agoFor a unit test, you could reduce the loop counter to say 1024.
- caf 6y agoAs noted it used the 8254 PIT to measure clock time passing, so you could program the 8254 to run much slower.