HZTO(9)                      OpenBSD Kernel Manual                     HZTO(9)

NAME
     hzto - translate absolute time to timeout delay.

SYNOPSIS
     #include <sys/types.h>
     #include <sys/time.h>
     #include <sys/systm.h>

     int
     hzto(struct timeval *tv);

DESCRIPTION
     The hzto() function computes the number of hz until the specified time
     occurs. This is mainly used to translate a timeval into a suitable argu-
     ment for timeout(9).

CODE REFERENCES
     This function is implemented in the file sys/kern/kern_clock.c.

SEE ALSO
     hz(9),  timeout(9)

OpenBSD 2.6                     August 31, 1999                              1
