Mercurial > hg > Members > koba > t_dandy
view profile.h @ 64:07bc996c8e49
fix t_dandy on ps3.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 11 Feb 2011 18:20:30 +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);