libtrbase  1.0.2
Web server and task management solution.
timer_set.c File Reference
#include <time.h>
#include "trbase.h"
+ Include dependency graph for timer_set.c:

Go to the source code of this file.

Macros

#define _POSIX_C_SOURCE   199309L
 

Functions

void TR_timerSet (TR_Timer this, TR_eTimeoutBase base, unsigned long timeout)
 

Detailed Description

Author
Georg Hopp

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_set.c.

Macro Definition Documentation

#define _POSIX_C_SOURCE   199309L

Definition at line 23 of file timer_set.c.

Function Documentation

void TR_timerSet ( TR_Timer  this,
TR_eTimeoutBase  base,
unsigned long  timeout 
)

Definition at line 30 of file timer_set.c.

Referenced by timerCtor().

31 {
32  struct timespec set;
33  clock_gettime(CLOCK_REALTIME, &set);
34  this->sec = set.tv_sec;
35  this->nsec = set.tv_nsec;
36  this->base = base;
37  this->timeout = timeout;
38 }

+ Here is the caller graph for this function: