N3191: C++ Timeout Specification
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@119909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,13 +28,13 @@ struct Clock
|
||||
typedef duration::rep rep;
|
||||
typedef duration::period period;
|
||||
typedef std::chrono::time_point<Clock> time_point;
|
||||
static const bool is_monotonic = true;
|
||||
static const bool is_steady = true;
|
||||
|
||||
static time_point now()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
return time_point(duration_cast<duration>(
|
||||
monotonic_clock::now().time_since_epoch()
|
||||
steady_clock::now().time_since_epoch()
|
||||
));
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user