Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-11-09 08:01:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-09 08:01:19 +0400
commit11a5c909f86e26ff00883be4b1dfcdac1f699717 (patch)
tree13c13b4156188783eab2d99c06cee048da58ef50 /source/blender/blenlib/PIL_time.h
parentcf08068e10040a3f4d5548bfcb4e4940d2f75d8d (diff)
code cleanup: move shrinkwrap's benchmark macro into PIL_time.h & some minor style edits.
Diffstat (limited to 'source/blender/blenlib/PIL_time.h')
-rw-r--r--source/blender/blenlib/PIL_time.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/PIL_time.h b/source/blender/blenlib/PIL_time.h
index b8f895c5c82..afad190ba23 100644
--- a/source/blender/blenlib/PIL_time.h
+++ b/source/blender/blenlib/PIL_time.h
@@ -76,6 +76,14 @@ void PIL_sleep_ms(int ms);
fflush(stdout); \
} (void)0
+
+#define TIMEIT_BENCH(expr, id) \
+ { \
+ TIMEIT_START(id); \
+ (expr); \
+ TIMEIT_END(id); \
+ } (void)0
+
#ifdef __cplusplus
}
#endif