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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-02-26 02:15:59 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-02-26 02:15:59 +0300
commit3cf2821f2f09d3c55dd88c2b6fb3b26e1ff69a7e (patch)
tree66ffef104bffcd2490d929c9789fc2cbc11e73ad /source/blender/alembic/intern/abc_util.h
parentbda0456933e87c2f623a8e4f980bf7cfc6b3982a (diff)
parent5c3216e2334863137019b55a44d5b9cfea842c10 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/alembic/intern/abc_util.h')
-rw-r--r--source/blender/alembic/intern/abc_util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_util.h b/source/blender/alembic/intern/abc_util.h
index 328f2c41a87..a878029928c 100644
--- a/source/blender/alembic/intern/abc_util.h
+++ b/source/blender/alembic/intern/abc_util.h
@@ -146,4 +146,23 @@ ABC_INLINE void copy_yup_from_zup(short yup[3], const short zup[3])
yup[2] = -zup[1];
}
+/* *************************** */
+
+#undef ABC_DEBUG_TIME
+
+class ScopeTimer {
+ const char *m_message;
+ double m_start;
+
+public:
+ ScopeTimer(const char *message);
+ ~ScopeTimer();
+};
+
+#ifdef ABC_DEBUG_TIME
+# define SCOPE_TIMER(message) ScopeTimer prof(message)
+#else
+# define SCOPE_TIMER(message)
+#endif
+
#endif /* __ABC_UTIL_H__ */