Mercurial > hg > Members > koba > t_dandy
view profile.h @ 14:c7e7971a76d0
fix.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Dec 2010 15:29:43 +0900 |
parents | 435ac1cdb64e |
children |
line wrap: on
line source
typedef struct { unsigned int sec; unsigned int usec; } mysec; typedef struct time_profile { mysec begin, end; unsigned int average; unsigned int peak; } *Timeprof; extern Timeprof timeprof_new(); // extern unsigned long timeprof_get(Timeprof t); extern void timeprof_sprint(char *s, const char *profname, Timeprof t); // #define timeprof_begin(t) timeprof_set_point(&((t)->begin)) // #define timeprof_end(t) timeprof_set_point(&((t)->end)) extern void timeprof_begin(Timeprof t); extern int timeprof_end(Timeprof t);