Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 1996 09:41:05 -0600
From:      amir@comtrol.com (Amir Farah)
To:        hackers@freebsd.org
Subject:   timeout() function
Message-ID:  <199611081541.JAA00123@rocket.comtrol.com>

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

I have a question about the timeout() function in /sys/kern/kern_clock.c file.

You can execute a function after a specified length of time using 
timeout(ftn, arg, ticks)

ftn: function to be called
args: arguments for the function
ticks: delay

If I pass "1" for the delay, does it mean the function will get called every
1 second?? I want to be able to call a funtion every 50 milisecond (or less). 

Can anyone set me straight on this issue.

Thanks

amir




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