1 #ifndef OPENPOSE_THREAD_W_FPS_MAX_HPP
2 #define OPENPOSE_THREAD_W_FPS_MAX_HPP
11 template<
typename TDatums>
15 explicit WFpsMax(
const double fpsMax);
21 void work(TDatums& tDatums);
24 const unsigned long long mNanosecondsToSleep;
37 template<
typename TDatums>
43 template<
typename TDatums>
48 template<
typename TDatums>
53 template<
typename TDatums>
65 std::this_thread::sleep_for(std::chrono::nanoseconds{mNanosecondsToSleep});
72 catch (
const std::exception& e)
76 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
static void printAveragedTimeMsOnIterationX(const std::string &key, const int line, const std::string &function, const std::string &file, const unsigned long long x=DEFAULT_X)
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
static void timerEnd(const std::string &key)
void work(TDatums &tDatums)
void initializationOnThread()
WFpsMax(const double fpsMax)
#define UNUSED(unusedVariable)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
unsigned long long uLongLongRound(const T a)
void opLogIfDebug(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")