diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-05-28 18:34:36 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-05-28 18:34:36 +0000 |
commit | d53d81522d5cab1684c1bc19986bac1d32a3aaa6 (patch) | |
tree | 24b1fb5df49228eb0a590a57f90b27686ac1dbab /libcxx/src | |
parent | 6a07d6f06d1e9d88dd04d68e07b5fa71ed9a910a (diff) | |
download | bcm5719-llvm-d53d81522d5cab1684c1bc19986bac1d32a3aaa6.tar.gz bcm5719-llvm-d53d81522d5cab1684c1bc19986bac1d32a3aaa6.zip |
noexcept for <chrono>.
llvm-svn: 132265
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/chrono.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/src/chrono.cpp b/libcxx/src/chrono.cpp index c3714208b5c..416b95013ef 100644 --- a/libcxx/src/chrono.cpp +++ b/libcxx/src/chrono.cpp @@ -25,7 +25,7 @@ namespace chrono // system_clock system_clock::time_point -system_clock::now() +system_clock::now() _NOEXCEPT { timeval tv; gettimeofday(&tv, 0); @@ -33,13 +33,13 @@ system_clock::now() } time_t -system_clock::to_time_t(const time_point& t) +system_clock::to_time_t(const time_point& t) _NOEXCEPT { return time_t(duration_cast<seconds>(t.time_since_epoch()).count()); } system_clock::time_point -system_clock::from_time_t(time_t t) +system_clock::from_time_t(time_t t) _NOEXCEPT { return system_clock::time_point(seconds(t)); } @@ -97,7 +97,7 @@ init_steady_clock() #pragma GCC visibility pop steady_clock::time_point -steady_clock::now() +steady_clock::now() _NOEXCEPT { static FP fp = init_steady_clock(); return time_point(duration(fp())); @@ -114,7 +114,7 @@ steady_clock::now() // instead. steady_clock::time_point -steady_clock::now() +steady_clock::now() _NOEXCEPT { struct timespec tp; if (0 != clock_gettime(CLOCK_MONOTONIC, &tp)) |