mensinda пре 9 година
родитељ
комит
f59cba13eb
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 1 1
      code/Profiler.h
  2. 3 3
      include/assimp/defs.h

+ 1 - 1
code/Profiler.h

@@ -83,7 +83,7 @@ public:
             return;
         }
 
-        std::chrono::duration<double> elapsedSeconds = std::chrono::system_clock::now() - regions[region];
+        auto elapsedSeconds = std::chrono::system_clock::now() - regions[region];
         DefaultLogger::get()->debug((format("END   `"),region,"`, dt= ", elapsedSeconds.count()," s"));
     }
 

+ 3 - 3
include/assimp/defs.h

@@ -219,9 +219,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      * without threading support. The library doesn't utilize
      * threads then and is itself not threadsafe. */
     //////////////////////////////////////////////////////////////////////////
-// #ifndef ASSIMP_BUILD_SINGLETHREADED
-// #   define ASSIMP_BUILD_SINGLETHREADED
-// #endif
+#ifndef ASSIMP_BUILD_SINGLETHREADED
+#   define ASSIMP_BUILD_SINGLETHREADED
+#endif
 
 #if defined(_DEBUG) || ! defined(NDEBUG)
 #   define ASSIMP_BUILD_DEBUG