Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2004 01:42:44 -0600 (CST)
From:      Mike Silbersack <silby@silby.com>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        arch@freebsd.org
Subject:   Re: Updating callout_reset
Message-ID:  <20040126013147.A1599@odysseus.silby.com>
In-Reply-To: <62080.1075098867@critter.freebsd.dk>
References:  <62080.1075098867@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 26 Jan 2004, Poul-Henning Kamp wrote:

> No, not timespec.
>
> Timespecs are stupid, slow, clumsy and unhandy and cumbersome.
>
> With a timespec you either need an MPunsafe hack function like
> libevents evConsTime() or a local stack variable.
>
> Make it a 64bit count of nanoseconds instead that way it can be
> used as a literal constant.
>
> It's OK with me if we want to have a function to contain the "*
> 1000000000LL" factor for us, and maybe even convenience functions
> for milli and microseconds.
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20

Ah, that would work better.  I guess this getting ideas reviewed process
does help. :)

Do we have a preexisting name for the "64bit nanoseconds" type?

Mike "Silby" Silbersack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040126013147.A1599>