36#ifndef __YTLIB_TIMER_H
37#define __YTLIB_TIMER_H
42#include "win/systime.h"
57typedef struct ytTimer_t
ytTimer;
60void ytTimer_delete(
ytTimer * timer);
61void ytTimer_enableSector(
ytTimer *
this);
64 ytTimer_get_type(
const ytTimer * timer);
66void ytTimer_start(
ytTimer * timer);
68void ytTimer_stop(
ytTimer * timer);
69void ytTimer_stopLap(
ytTimer *
this);
70void ytTimer_clear(
ytTimer * timer);
71void ytTimer_clearStart(
ytTimer * timer);
73double ytTimer_get(
const ytTimer * timer);
74double ytTimer_lap(
ytTimer * timer);
75void ytTimer_sector(
ytTimer *
this);
76double ytTimer_get_avg_lap(
const ytTimer * timer);
77double ytTimer_getTime();
78void ytTimer_printDDHHMMSS(
ytTimer * timer, FILE * fp);
79void ytTimer_printDDHHMMSSsec(FILE * fp,
double seconds);
80void ytTimer_printDDHHMMSSSSSsec(FILE * fp,
double seconds);
81void ytTimer_printDDHHMMSSSSS(
const ytTimer * timer, FILE * fp);
82void ytTimer_print(
const ytTimer *
this, FILE * fp);
84typedef struct ytTimer_t
ytTimer;
Structure for Timer functions.
ytTimer_type
Timer types.
Definition ytTimer.h:50
@ ytTimer_NORMAL
Definition ytTimer.h:52
@ ytTimer_CLOCK
timer based on CPU clocks
Definition ytTimer.h:54