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.cc
parentbda0456933e87c2f623a8e4f980bf7cfc6b3982a (diff)
parent5c3216e2334863137019b55a44d5b9cfea842c10 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/alembic/intern/abc_util.cc')
-rw-r--r--source/blender/alembic/intern/abc_util.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_util.cc b/source/blender/alembic/intern/abc_util.cc
index bb375eb9561..5b45dff4b7f 100644
--- a/source/blender/alembic/intern/abc_util.cc
+++ b/source/blender/alembic/intern/abc_util.cc
@@ -38,6 +38,8 @@ extern "C" {
#include "DNA_layer_types.h"
#include "BLI_math.h"
+
+#include "PIL_time.h"
}
std::string get_id_name(Object *ob)
@@ -512,3 +514,15 @@ AbcObjectReader *create_reader(const Alembic::AbcGeom::IObject &object, ImportSe
return reader;
}
+
+/* ********************** */
+
+ScopeTimer::ScopeTimer(const char *message)
+ : m_message(message)
+ , m_start(PIL_check_seconds_timer())
+{}
+
+ScopeTimer::~ScopeTimer()
+{
+ fprintf(stderr, "%s: %fs\n", m_message, PIL_check_seconds_timer() - m_start);
+}