httperf  0.9.0
About: httperf is a tool for measuring web server performance.
  Fossies Dox: httperf-0.9.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

timer.h File Reference
#include <sys/types.h>
#include <httperf.h>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Timer_Queue
struct  Timer


#define TIMER_INTERVAL   (1.0/1000) /* timer granularity in seconds */


typedef void(* Timer_Callback) (struct Timer *t, Any_Type arg)
typedef struct Timer_Queue Timer_Queue
typedef struct Timer Timer


Time timer_now_forced (void)
Time timer_now (void)
void timer_init (void)
void timer_tick (void)
Timertimer_schedule (Timer_Callback timeout, Any_Type arg, Time delay)
void timer_cancel (Timer *t)

Macro Definition Documentation


#define TIMER_INTERVAL   (1.0/1000) /* timer granularity in seconds */

Definition at line 42 of file timer.h.

Typedef Documentation

◆ Timer

typedef struct Timer Timer

◆ Timer_Callback

typedef void(* Timer_Callback) (struct Timer *t, Any_Type arg)

Definition at line 45 of file timer.h.

◆ Timer_Queue

typedef struct Timer_Queue Timer_Queue

Function Documentation

◆ timer_cancel()

void timer_cancel ( Timer t)

◆ timer_init()

void timer_init ( void  )

Definition at line 82 of file timer.c.

References curr, next_tick, now, TIMER_INTERVAL, timer_now(), timer_now_forced(), and wheel.

Referenced by main().

◆ timer_now()

◆ timer_now_forced()

Time timer_now_forced ( void  )

Definition at line 67 of file timer.c.

Referenced by timer_init(), and timer_tick().

◆ timer_schedule()

◆ timer_tick()

void timer_tick ( void  )