libjf API reference guide

Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

jf_timer_t Struct Reference

#include <jf_timer.h>


Data Fields

timeval base_ela_time
clock_t base_sys_time
clock_t base_usr_time
timeval ela_time
int started
clock_t sys_time
long ticks_per_sec
timezone tz
clock_t usr_time


Detailed Description

Class used to manage elapsed time and CPU time; this class is compiled only on POSIX systems and is null on other systems

Definition at line 80 of file jf_timer.h.


Field Documentation

struct timeval jf_timer_t::base_ela_time
 

elapsed time at star time Definition at line 113 of file jf_timer.h.

Referenced by jf_timer_reset(), jf_timer_start(), and jf_timer_stop().

clock_t jf_timer_t::base_sys_time
 

system time at start time Definition at line 97 of file jf_timer.h.

Referenced by jf_timer_reset(), jf_timer_start(), and jf_timer_stop().

clock_t jf_timer_t::base_usr_time
 

user time at start time Definition at line 93 of file jf_timer.h.

Referenced by jf_timer_reset(), jf_timer_start(), and jf_timer_stop().

struct timeval jf_timer_t::ela_time
 

current accounted elapsed time Definition at line 117 of file jf_timer.h.

Referenced by jf_timer_get_ela_time(), jf_timer_reset(), and jf_timer_stop().

int jf_timer_t::started
 

boolean value: timer started condition Definition at line 84 of file jf_timer.h.

Referenced by jf_timer_reset(), jf_timer_start(), and jf_timer_stop().

clock_t jf_timer_t::sys_time
 

current accounted system time Definition at line 105 of file jf_timer.h.

Referenced by jf_timer_get_sys_time(), jf_timer_reset(), and jf_timer_stop().

long jf_timer_t::ticks_per_sec
 

number of clock ticks in a second (used for CPU used time) Definition at line 89 of file jf_timer.h.

Referenced by jf_timer_get_sys_time(), jf_timer_get_usr_time(), and jf_timer_reset().

struct timezone jf_timer_t::tz
 

utility field for 'gettimeofday' function Definition at line 109 of file jf_timer.h.

Referenced by jf_timer_reset(), jf_timer_start(), and jf_timer_stop().

clock_t jf_timer_t::usr_time
 

current accounted user time Definition at line 101 of file jf_timer.h.

Referenced by jf_timer_get_usr_time(), jf_timer_reset(), and jf_timer_stop().


The documentation for this struct was generated from the following file:
Copyright 2005 © Tiian