#include <chrono>
#include <string>
#include <openpose/core/macros.hpp>
#include <openpose/utilities/enumClasses.hpp>
Go to the source code of this file.
|
OP_API std::chrono::time_point< std::chrono::high_resolution_clock > | op::getTimerInit () |
|
OP_API double | op::getTimeSeconds (const std::chrono::time_point< std::chrono::high_resolution_clock > &timerInit) |
|
OP_API void | op::printTime (const std::chrono::time_point< std::chrono::high_resolution_clock > &timerInit, const std::string &firstMessage, const std::string &secondMessage, const Priority priority) |
|
◆ OP_CUDA_PROFILE_END
#define OP_CUDA_PROFILE_END |
( |
|
finalTime, |
|
|
|
factor, |
|
|
|
REPS |
|
) |
| |
Value: } \
cudaDeviceSynchronize(); \
cudaCheck(__LINE__, __FUNCTION__, __FILE__); \
}
OP_API double getTimeSeconds(const std::chrono::time_point< std::chrono::high_resolution_clock > &timerInit)
Definition at line 59 of file profiler.hpp.
◆ OP_CUDA_PROFILE_INIT
#define OP_CUDA_PROFILE_INIT |
( |
|
REPS | ) |
|
Value: { \
cudaDeviceSynchronize(); \
for (auto rep = 0 ; rep < (REPS) ; ++rep) \
{
OP_API std::chrono::time_point< std::chrono::high_resolution_clock > getTimerInit()
Definition at line 51 of file profiler.hpp.
◆ OP_PROFILE_END
#define OP_PROFILE_END |
( |
|
finalTime, |
|
|
|
factor, |
|
|
|
REPS |
|
) |
| |
◆ OP_PROFILE_INIT
#define OP_PROFILE_INIT |
( |
|
REPS | ) |
|
Value: { \
for (auto rep = 0 ; rep < (REPS) ; ++rep) \
{
Definition at line 31 of file profiler.hpp.