File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,8 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
260
260
{
261
261
using namespace obj2voxel ;
262
262
263
- auto startTime = std::chrono::high_resolution_clock::now ();
263
+ using clock_type = std::chrono::high_resolution_clock;
264
+ auto startTime = clock_type::now ();
264
265
265
266
initLogging ();
266
267
@@ -344,8 +345,7 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
344
345
strategyArg.Get (),
345
346
unitTransform);
346
347
347
- i64 nanos =
348
- std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::system_clock::now () - startTime).count ();
348
+ i64 nanos = std::chrono::duration_cast<std::chrono::nanoseconds>(clock_type::now () - startTime).count ();
349
349
350
350
VXIO_LOG (IMPORTANT, " Done! (" + stringifyTime (static_cast <u64 >(nanos), 2 ) + ' )' );
351
351
}
You can’t perform that action at this time.
0 commit comments