From 2bbd916cccccaa28a46351f16af568f8624f2e8e Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Mon, 25 Nov 2019 11:13:50 +0100 Subject: [PATCH] Fixed build on Linux --- src/slic3r/GUI/Mouse3DController.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Mouse3DController.cpp b/src/slic3r/GUI/Mouse3DController.cpp index 39542e652..38840fbdf 100644 --- a/src/slic3r/GUI/Mouse3DController.cpp +++ b/src/slic3r/GUI/Mouse3DController.cpp @@ -339,11 +339,10 @@ bool Mouse3DController::connect_device() return false; // check time since last detection took place - auto now = std::chrono::high_resolution_clock::now(); - if (std::chrono::duration_cast(now - m_last_time).count() < DETECTION_TIME) + if (std::chrono::duration_cast(std::chrono::high_resolution_clock::now() - m_last_time).count() < DETECTION_TIME) return false; - m_last_time = now; + m_last_time = std::chrono::high_resolution_clock::now(); // Enumerates devices hid_device_info* devices = hid_enumerate(0, 0);