VS11 ist steady_clock, stetig?
Ich habe gerade den folgenden Code in bemerkt<chrono.h>
, was für mich keinen Sinn ergibt.
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;
Wie kannsteady_clock
Sei ruhig, wenn es einfach von dir herrührtsystem_clock
Welches ist nicht stabil?