10#define __YTLIB_TIMER_H 
   15#include "win/systime.h" 
   30typedef struct ytTimer_t 
ytTimer;
 
   33void    ytTimer_delete(
ytTimer * timer);
 
   34void    ytTimer_enableSector(
ytTimer * 
this);
 
   37        ytTimer_get_type(
const ytTimer * timer);
 
   39void    ytTimer_start(
ytTimer * timer);
 
   41void    ytTimer_stop(
ytTimer * timer);
 
   42void    ytTimer_stopLap(
ytTimer * 
this);
 
   43void    ytTimer_clear(
ytTimer * timer);
 
   44void    ytTimer_clearStart(
ytTimer * timer);
 
   46double  ytTimer_get(
const ytTimer * timer);
 
   47double  ytTimer_lap(
ytTimer * timer);
 
   48void    ytTimer_sector(
ytTimer * 
this);
 
   49double  ytTimer_get_avg_lap(
const ytTimer * timer);
 
   50double  ytTimer_getTime();
 
   51void    ytTimer_printDDHHMMSS(
ytTimer * timer, FILE * fp);
 
   52void    ytTimer_printDDHHMMSSsec(FILE * fp, 
double seconds);
 
   53void    ytTimer_printDDHHMMSSSSSsec(FILE * fp, 
double seconds);
 
   54void    ytTimer_printDDHHMMSSSSS(
const ytTimer * timer, FILE * fp);
 
   55void    ytTimer_print(
const ytTimer * 
this, FILE * fp);
 
   57typedef struct ytTimer_t 
ytTimer;
 
Structure for Timer functions.
ytTimer_type
Timer types.
Definition ytTimer.h:23
@ ytTimer_NORMAL
Definition ytTimer.h:25
@ ytTimer_CLOCK
timer based on CPU clocks
Definition ytTimer.h:27