Re: Timing with clock_gettime(2) (sysutils/clockspeed port)

2003-01-02 Thread Lev Walkin
Mario Sergio Fujikawa Ferreira wrote: #define timing_diffi(x,y) \ ( \ (double) ( ((x)-t.tv_sec - (y)-t.tv_sec) + \ (double) ( \ ((x)-t.tv_nsec - (double) (y)-t.tv_nsec) * 4294967296.0 / 1e9 \ ) \ ) \ ) [skip] printf(Avg getpid() time = %lld nsec\n,

Timing with clock_gettime(2) (sysutils/clockspeed port)

2002-12-23 Thread Mario Sergio Fujikawa Ferreira
Hi, clockspeed is a port that Uses a hardware tick counter to compensate for deviant system clock. From pkg-descr: clockspeed uses a hardware tick counter to compensate for a persistently fast or slow system clock. Given a few time measurements from a reliable source, it computes and

Re: Timing with clock_gettime(2) (sysutils/clockspeed port)

2002-12-23 Thread phk
In message [EMAIL PROTECTED], Mario Sergio Fuji kawa Ferreira writes: clockspeed uses a hardware tick counter to compensate for a persistently fast or slow system clock. Given a few time measurements from a reliable source, it computes and then eliminates the clock skew. Uhm, have you heard

Re: Timing with clock_gettime(2) (sysutils/clockspeed port)

2002-12-23 Thread Mario Sergio Fujikawa Ferreira
On Mon, Dec 23, 2002 at 12:23:34PM +0100, [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED], Mario Sergio Fuji kawa Ferreira writes: clockspeed uses a hardware tick counter to compensate for a persistently fast or slow system clock. Given a few time measurements from a reliable source,