libtrbase
1.0.2
Web server and task management solution.
|
Go to the source code of this file.
Macros | |
#define | TR_timerSetNan(timer, val) (TR_timerSet((timer), TR_TBASE_NAN, (val))) |
#define | TR_timerSetMic(timer, val) (TR_timerSet((timer), TR_TBASE_MIC, (val))) |
#define | TR_timerSetMil(timer, val) (TR_timerSet((timer), TR_TBASE_MIL, (val))) |
#define | TR_timerSetSec(timer, val) (TR_timerSet((timer), TR_TBASE_SEC, (val))) |
Enumerations | |
enum | TR_eTimeoutBase { TR_TBASE_NAN = 0, TR_TBASE_MIC, TR_TBASE_MIL, TR_TBASE_SEC } |
Functions | |
TR_CLASS (TR_Timer) | |
TR_INSTANCE_INIT (TR_Timer) | |
TR_CLASSVARS_DECL (TR_Timer) | |
void | TR_timerSet (TR_Timer, TR_eTimeoutBase, unsigned long) |
unsigned long | TR_timerGet (TR_Timer, unsigned long *) |
A timer with second, millisec, microsec or nanosec granularity.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file timer.h.
#define TR_timerSetMic | ( | timer, | |
val | |||
) | (TR_timerSet((timer), TR_TBASE_MIC, (val))) |
#define TR_timerSetMil | ( | timer, | |
val | |||
) | (TR_timerSet((timer), TR_TBASE_MIL, (val))) |
#define TR_timerSetNan | ( | timer, | |
val | |||
) | (TR_timerSet((timer), TR_TBASE_NAN, (val))) |
#define TR_timerSetSec | ( | timer, | |
val | |||
) | (TR_timerSet((timer), TR_TBASE_SEC, (val))) |
enum TR_eTimeoutBase |
Enumerator | |
---|---|
TR_TBASE_NAN | |
TR_TBASE_MIC | |
TR_TBASE_MIL | |
TR_TBASE_SEC |
TR_INSTANCE_INIT | ( | TR_Timer | ) |
unsigned long TR_timerGet | ( | TR_Timer | , |
unsigned long * | |||
) |
Definition at line 31 of file timer_get.c.
References TR_TBASE_MIC, TR_TBASE_MIL, TR_TBASE_NAN, and TR_TBASE_SEC.
void TR_timerSet | ( | TR_Timer | , |
TR_eTimeoutBase | , | ||
unsigned | long | ||
) |
Definition at line 30 of file timer_set.c.
Referenced by timerCtor().