Easy-to-use C++ class for asking current time stamp in milli-, micro- and nanoseconds
Since std::chrono::high_resolution_clock::now() is static method you don't need any instance for it.

This is all you need.

#ifndef CURRENT_TIME_H
#define CURRENT_TIME_H

#include &lt;chrono&gt;
#include &lt;cstdint&gt;

inline uint64_t CurrentTime_milliseconds() 
{
    return std::chrono::duration_cast&lt;std::chrono::milliseconds&gt;
              (std::chrono::high_resolution_clock::now().time_since_epoch()).count();
}

inline uint64_t CurrentTime_microseconds() 
{
    return std::chrono::duration_cast&lt;std::chrono::microseconds&gt;
              (std::chrono::high_resolution_clock::now().time_since_epoch()).count();
}

inline uint64_t CurrentTime_nanoseconds()
{
    return std::chrono::duration_cast&lt;std::chrono::nanoseconds&gt;
              (std::chrono::high_resolution_clock::now().time_since_epoch()).count();
}  

#endif  /* CURRENT_TIME_H */