qtimer_start - Man Page

start/stop a qtimer timing

Synopsis

#include <qthread/qtimer.h>

void
qtimer_start (qtimer_t timer);

void
qtimer_stop (qtimer_t timer);

Description

These functions start and stop (respectively) the timing of the qtimer timer.

Before using these functions, the timer must have been initialized with qtimer_create() and must not have been destroyed with qtimer_destroy().

In general, timers should not be started multiple times in a row without an intervening stop, nor should they be stopped multiple times in a row without an intervening start, though in most cases this will not cause an error, but will just behave as a "last operation wins". Timers should also be started before they are stopped, though in most cases this will not cause an error, but will instead cause the value of qtimer_secs() to be undefined. However, the safety of mis-using qtimers is not guaranteed.

See Also

qtimer_create(3), qtimer_destroy(3), qtimer_secs(3)

Referenced By

qtimer_create(3), qtimer_destroy(3), qtimer_fastrand(3), qtimer_secs(3).

JUNE 2010 libqthread