>
>
>>      Add a WIN32 equivalent for gettimeofday
>>
>> This function does not really returns the "time of day", but it will
>> suffice to evaluate elapsed times.
>>
>
> What's wrong with using timeGetTime instead? The choice I made was to use
> plain time to count also the time used by other processes (X server,
> kernel...). Whan using ticks (at least in linux) I think one does not get
> the time spent in othe rprocesses).
>
timeGetTime only gets you a time in milliseconds. The example you gave
(about the Messages cache) clearly needs microsecond resolution.
Vincent

Reply via email to