
Just integer divide 9,220,000,000,000,000,000 by Freq.
That should give you the number of seconds before rollover.
Code:
DECLARE FUNCTION QueryPerformanceFrequency LIB "KERNEL32.DLL" ALIAS "QueryPerformanceFrequency" (lpFrequency AS QUAD) AS LONG FUNCTION PBMAIN LOCAL result AS QUAD, freq AS QUAD QueryPerformanceFrequency Freq result = 9220000000000000000&& \ freq ' seconds \ minutes \ hours \ days \ years MSGBOX STR$(result \ 60 \ 60 \ 24 \ 365) END FUNCTION
------------------
Leave a comment: