13 #include "mathutils.h" 19 pthread_setname_np(name.c_str());
21 pthread_setname_np(pthread_self(), name.c_str());
30 std::chrono::system_clock::time_point tp =
31 std::chrono::system_clock::now()) {
32 auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(
33 tp.time_since_epoch())
35 return double(millis) / 1000;
General utilities.
Definition: assert.cpp:7
void setCurrentThreadName(std::string const &name)
Definition: utils.h:17
double memoryUsage()
Definition: utils.cpp:18
double timestamp(std::chrono::system_clock::time_point tp=std::chrono::system_clock::now())
Definition: utils.h:29