Updating callout_reset

Mike Silbersack silby at silby.com
Sun Jan 25 23:42:47 PST 2004


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


More information about the freebsd-arch mailing list