Skip to Content.
Sympa Menu

freetds - Re: [freetds] Query Time Out

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: christos AT zoulas.com (Christos Zoulas)
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Query Time Out
  • Date: Fri, 11 Aug 2006 11:16:30 -0400

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




Archive powered by MHonArc 2.6.24.

Top of Page