在 2023/10/31 16:20, Martin Storsjö 写道:
Right. On the other hand, the QueryPerformanceCounter based fallback implementation probably is workable enough for winstore apps as well, I would guess, so perhaps it't not worth making a fuss about in the end anyway.
The issue is not about whether there is a fallback; the issue is about when to use the fallback. If we still aim at providing a (static) winpthreads that is eligible for Windows Store apps, then there does not seem any way to detect the existence of `GetTickCount64()`, and as a consequence we would have to use the fallback unconditionally. We also notice that `QueryPerformanceCounter()` is quite fast on modern Windows; the frequency is probably not but that variable isn't gonna change hence can be static anyway.
-- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
