It's not the place, but that doesn't mean no one here knows how to 
solve your problem :).

Look at the documentation for /dev/rtc.  It's the only thing that 
will allow fine grain timing in userspace.  This would assume that 
you have full support for /dev/rtc in your kernel, which is only the 
case on some platforms.  (But any reasonable kernel engineer could 
add it to any platform that has a reasonable set of timers, etc.)

There are two types of rtc timing, the first is a periodic which you 
set to go off at some interval.  The other is an alarm that you set 
the time for.  The "set time" type alarm may only be accurate to the 
second level, I can't quite remember, but it can be modified to be 
accurate to the microsecond level, again, depending on the platform.  
The periodic can be rather accurate however.  (The best latency 
achievable is probably in the ms category for 2.4.x level kernels 
unless you do some real fancy footwork in the kernel with respect to 
interrupt priority, and make sure none of your ISRs block for too 
long)

Thanks,
Shane Nay.
(The best place for this question is in the community group for your 
platform, if you really need something very critical, you'll likely 
have to do some kernel hacking)

On Wednesday 13 March 2002 05:49, you wrote:
> Perhaps this is not the place of my question,but I dont
> know any other mail group.So,sorry for this...
>       I need a timer (I have a time critical job) in the GUI
> (except setIdle()).An I've seen some in kernel,for example
> how,can I use the add_timer,(init_timer()) functions,or any
> other timer functions,and what is their libraries ??? Help
> me please,,,

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to