[okl4-developer] vtimer

Geoffrey Lee glee at ok-labs.com
Mon Jul 7 18:42:55 EST 2008


On Mon, Jul 07, 2008 at 10:33:32AM +0200, Antonin SUBTIL wrote:
> Hello
> 
> Is there a way to init vTimer at a specified value? (if it's incremental,
> not starting from 0 but from X to timeout - if it's decremental it's easy :
> X(or timeout?) down to 0)

You can set the current ticks of the timer driver to a known value
using the set_ticks() RPC call.

Since your timeouts are going to be relative to the current time,
there should not be a need to initialize the current time to something
other than zero.  What are you trying to achieve here?

	-gl


> 
> thanks
> 
> -- 
> Antonin Subtil,
> 35 rue Donissan
> FR-33000 Bordeaux
> +33 (0)6.86.04.41.33
> (anciennement +33 (0)6.77.40.17.69)
> 
> Economisez du papier, limitez votre production de déchets : n'imprimez ce
> message que si nécessaire (et... en recto-verso) !

> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer


-- 




More information about the Developer mailing list