Combined, they return the time since Windows started and form the basis of the Timer function.
x = _TimerCount
x = _TimerFreq
x : i64var
_TimerFreq returns the frequency with which the timer is counted (1/1193190 - resolution, better as microseconds).
_TimerCount returns the number of counts since Windows began, the rate of the counts being determined by the frequency stored in _TimerFreq: hence, the value of Tmer - or the seconds elapsed since Windows began - is theoretically _TimerCount / _TimerFreq.
OpenW 1
Dim a, b As Large, c As Double
a = _TimerCount
b = _TimerFreq
c = Timer
Print a // Result
Print b
Print Round(a / b, 5), Round(c, 5) // equal to Timer
Do
Sleep
Until Me Is Nothing
When Timer is compared to (_TimerCount / _TimerFreq), the values aren't identical. This isn't a flaw in GFA-BASIC 32, but is due to fact that both functions aren't invoked at the same time.
{Created by Sjouke Hamstra; Last updated: 23/09/2014 by James Gaite}