diff --git a/samples/opengl/opengl_interop.cpp b/samples/opengl/opengl_interop.cpp index d8448ca281..433da782da 100644 --- a/samples/opengl/opengl_interop.cpp +++ b/samples/opengl/opengl_interop.cpp @@ -329,7 +329,7 @@ public: glXSwapBuffers(m_display, m_window); #endif - print_info(mode, m_timer.time(Timer::UNITS::MSEC), m_oclDevName); + print_info(mode, m_timer.time(Timer::MSEC), m_oclDevName); } diff --git a/samples/opengl/winapp.hpp b/samples/opengl/winapp.hpp index cf36774955..213310414d 100644 --- a/samples/opengl/winapp.hpp +++ b/samples/opengl/winapp.hpp @@ -56,7 +56,7 @@ public: m_diff = cv::getTickCount() - m_t0; } - float time(UNITS u = UNITS::MSEC) + float time(UNITS u = MSEC) { float sec = m_diff / m_tick_frequency;