aboutsummaryrefslogtreecommitdiff
path: root/src/ObjModel.cpp
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-02-19 14:56:08 +0100
committerMateja <mail@matejamaric.com>2021-02-19 14:56:08 +0100
commit79048d1ad84e33d5eacbc5dfbef752948e9a787f (patch)
tree2e525742ca34452bd4a425e11d6bffdf3a48b9a2 /src/ObjModel.cpp
parentea5f50550ea2027043c9c3d0f5d998a1a1d336a5 (diff)
downloaderender-79048d1ad84e33d5eacbc5dfbef752948e9a787f.tar.gz
erender-79048d1ad84e33d5eacbc5dfbef752948e9a787f.zip
Add texure loading check and loading time. Add ObjModel loadingTime.
Diffstat (limited to 'src/ObjModel.cpp')
-rw-r--r--src/ObjModel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ObjModel.cpp b/src/ObjModel.cpp
index f23cfc3..aa81cec 100644
--- a/src/ObjModel.cpp
+++ b/src/ObjModel.cpp
@@ -6,6 +6,8 @@ ObjModel::ObjModel() {}
ObjModel::ObjModel(std::string fileName)
{
+ std::chrono::high_resolution_clock::time_point time1 = std::chrono::high_resolution_clock::now();
+
int hlp = 0;
std::ifstream f(fileName);
std::string s0;
@@ -56,6 +58,8 @@ ObjModel::ObjModel(std::string fileName)
}
}
+ std::chrono::high_resolution_clock::time_point time2 = std::chrono::high_resolution_clock::now();
+ loadingTime = std::chrono::duration_cast<std::chrono::duration<double>>(time2 - time1);
}
ObjModel::ObjModel(const ObjModel& a)