VS11 es steady_clock, steady?
Acabo de notar el siguiente código en<chrono.h>
, lo que no tiene sentido para mí.
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 puedesteady_clock
ser constante cuando simplemente se deriva desystem_clock
que no es constante?