[freetds] Query Time Out

Christos Zoulas christos at zoulas.com
Fri Aug 11 11:16:30 EDT 2006


On Aug 11, 11:08am, Frediano.Ziglio at vodafone.com ("ZIGLIO, Frediano, VF-IT") wrote:
-- Subject: Re: [freetds] Query Time Out

| Mmmm... why not using clock_gettime where available then?
| 
| Looking at qemu sources I found this funny function. I always don't
| liked very much gettimeofday for such computation. The reason? The main
| problem is that this function (time and ftime have same problem) is
| bound to local time since midnight. For this reason clock may go
| backward when time is adjusted for locale setting (from/to daylight
| saving time). For the same reason (I think) my X goes blank for some
| seconds when ntp adjust the time... clock_gettime(CLOCK_MONOTONIC, ...)
| is posix and don't have this problem. 

Even better for that particular application!

christos



More information about the FreeTDS mailing list