VS11 to steady_clock, stabilny?
Właśnie zauważyłem następujący kod w<chrono.h>
, co nie ma dla mnie sensu.
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;
Jak możnasteady_clock
bądź pewny, kiedy po prostu pochodzisystem_clock
co nie jest stabilne?