VS11 é steady_clock, estável?
Eu só notei o seguinte código em<chrono.h>
, o que não faz sentido para mim.
struct system_clock
{
static const bool is_monotonic = false; // retained
static const bool is_steady = false;
};
class steady_clock
: public system_clock
{ // wraps monotonic clock
public:
static const bool is_monotonic = true; // retained
static const bool is_steady = true;
};
typedef steady_clock monotonic_clock; // retained
typedef system_clock high_resolution_clock;
Como podesteady_clock
ser firme quando deriva simplesmentesystem_clock
que não é estável?