forked from bartvdbraak/blender
style cleanup: also fix for TIMEIT macro
This commit is contained in:
parent
481658867e
commit
47826118d1
@ -61,7 +61,7 @@ void PIL_sleep_ms(int ms);
|
|||||||
double _timeit_##var = PIL_check_seconds_timer(); \
|
double _timeit_##var = PIL_check_seconds_timer(); \
|
||||||
printf("time start (" #var "): " AT "\n"); \
|
printf("time start (" #var "): " AT "\n"); \
|
||||||
fflush(stdout); \
|
fflush(stdout); \
|
||||||
{ (void) \
|
{ (void)0 \
|
||||||
|
|
||||||
|
|
||||||
#define TIMEIT_VALUE(var) (float)(PIL_check_seconds_timer() - _timeit_##var)
|
#define TIMEIT_VALUE(var) (float)(PIL_check_seconds_timer() - _timeit_##var)
|
||||||
@ -71,7 +71,7 @@ void PIL_sleep_ms(int ms);
|
|||||||
} \
|
} \
|
||||||
printf("time end (" #var "): %.6f" " " AT "\n", TIMEIT_VALUE(var)); \
|
printf("time end (" #var "): %.6f" " " AT "\n", TIMEIT_VALUE(var)); \
|
||||||
fflush(stdout); \
|
fflush(stdout); \
|
||||||
} (void) \
|
} (void)0 \
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user