projects
/
experiments
/
fps-meter.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a fps_meter_ prefix to macros
[experiments/fps-meter.git]
/
fps-meter.c
diff --git
a/fps-meter.c
b/fps-meter.c
index
c1a245f
..
2d9ea6b
100644
(file)
--- a/
fps-meter.c
+++ b/
fps-meter.c
@@
-27,7
+27,7
@@
int main(void)
fps_meter_init(&stats);
while (1) {
/* simulate some workload of about 60fps */
fps_meter_init(&stats);
while (1) {
/* simulate some workload of about 60fps */
- dbg("Doing some work, which takes about %d ns", NSEC_PER_SEC / 60);
+
fps_meter_
dbg("Doing some work, which takes about %d ns", NSEC_PER_SEC / 60);
tmp.tv_sec = 0;
tmp.tv_nsec = NSEC_PER_SEC / 60;
clock_nanosleep(CLOCK_MONOTONIC, 0, &tmp, NULL);
tmp.tv_sec = 0;
tmp.tv_nsec = NSEC_PER_SEC / 60;
clock_nanosleep(CLOCK_MONOTONIC, 0, &tmp, NULL);