/external/libcxx/test/std/utilities/time/time.point/time.point.cast/ |
D | round.pass.cpp | 23 template <class FromDuration, class ToDuration> 25 test(const FromDuration& df, const ToDuration& d) in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::round<ToDuration>(f)) R; in test() 35 assert(std::chrono::round<ToDuration>(f) == t); in test() 39 template<class FromDuration, long long From, class ToDuration, long long To> 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 47 constexpr ToTimePoint t{ToDuration{To}}; in test_constexpr() 48 static_assert(std::chrono::round<ToDuration>(f) == t, ""); in test_constexpr()
|
D | ceil.pass.cpp | 23 template <class FromDuration, class ToDuration> 25 test(const FromDuration& df, const ToDuration& d) in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::ceil<ToDuration>(f)) R; in test() 35 assert(std::chrono::ceil<ToDuration>(f) == t); in test() 39 template<class FromDuration, long long From, class ToDuration, long long To> 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 47 constexpr ToTimePoint t{ToDuration{To}}; in test_constexpr() 48 static_assert(std::chrono::ceil<ToDuration>(f) == t, ""); in test_constexpr()
|
D | floor.pass.cpp | 23 template <class FromDuration, class ToDuration> 25 test(const FromDuration& df, const ToDuration& d) in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::floor<ToDuration>(f)) R; in test() 35 assert(std::chrono::floor<ToDuration>(f) == t); in test() 39 template<class FromDuration, long long From, class ToDuration, long long To> 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 47 constexpr ToTimePoint t{ToDuration{To}}; in test_constexpr() 48 static_assert(std::chrono::floor<ToDuration>(f) == t, ""); in test_constexpr()
|
D | time_point_cast.pass.cpp | 24 template <class FromDuration, class ToDuration> 26 test(const FromDuration& df, const ToDuration& d) in test() 30 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 34 typedef decltype(std::chrono::time_point_cast<ToDuration>(f)) R; in test() 36 assert(std::chrono::time_point_cast<ToDuration>(f) == t); in test() 42 template<class FromDuration, long long From, class ToDuration, long long To> 47 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 50 constexpr ToTimePoint t{ToDuration{To}}; in test_constexpr() 51 static_assert(std::chrono::time_point_cast<ToDuration>(f) == t, ""); in test_constexpr()
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.cast/ |
D | ceil.pass.cpp | 25 template <class ToDuration, class FromDuration> 27 test(const FromDuration& f, const ToDuration& d) in test() 30 typedef decltype(std::chrono::ceil<ToDuration>(f)) R; in test() 31 static_assert((std::is_same<R, ToDuration>::value), ""); in test() 32 assert(std::chrono::ceil<ToDuration>(f) == d); in test()
|
D | floor.pass.cpp | 24 template <class ToDuration, class FromDuration> 26 test(const FromDuration& f, const ToDuration& d) in test() 29 typedef decltype(std::chrono::floor<ToDuration>(f)) R; in test() 30 static_assert((std::is_same<R, ToDuration>::value), ""); in test() 31 assert(std::chrono::floor<ToDuration>(f) == d); in test()
|
D | round.pass.cpp | 24 template <class ToDuration, class FromDuration> 26 test(const FromDuration& f, const ToDuration& d) in test() 29 typedef decltype(std::chrono::round<ToDuration>(f)) R; in test() 30 static_assert((std::is_same<R, ToDuration>::value), ""); in test() 31 assert(std::chrono::round<ToDuration>(f) == d); in test()
|
D | duration_cast.pass.cpp | 25 template <class ToDuration, class FromDuration> 27 test(const FromDuration& f, const ToDuration& d) in test() 30 typedef decltype(std::chrono::duration_cast<ToDuration>(f)) R; in test() 31 static_assert((std::is_same<R, ToDuration>::value), ""); in test() 32 assert(std::chrono::duration_cast<ToDuration>(f) == d); in test()
|
/external/protobuf/src/google/protobuf/util/ |
D | time_util.cc | 411 void ToDuration(const uint128& value, bool negative, Duration* duration) { in ToDuration() function 445 ToDuration(value, negative, &d); in operator *=() 471 ToDuration(value, negative, &d); in operator /=() 491 ToDuration(result, negative1, &d1); in operator %=()
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | TimeExtensions.cs | 75 public static Duration ToDuration(this TimeSpan timeSpan) in ToDuration() method in Google.Protobuf.WellKnownTypes.TimeExtensions
|
/external/syzkaller/vendor/cloud.google.com/go/internal/optional/ |
D | optional.go | 98 func ToDuration(v Duration) time.Duration { func
|
/external/libcxx/include/ |
D | chrono | 22 template <class ToDuration, class Rep, class Period> 24 ToDuration 204 template <class ToDuration, class Rep, class Period> 205 ToDuration duration_cast(const duration<Rep, Period>& d); 207 template <class ToDuration, class Rep, class Period> 208 constexpr ToDuration floor(const duration<Rep, Period>& d); // C++17 209 template <class ToDuration, class Rep, class Period> 210 constexpr ToDuration ceil(const duration<Rep, Period>& d); // C++17 211 template <class ToDuration, class Rep, class Period> 212 constexpr ToDuration round(const duration<Rep, Period>& d); // C++17 [all …]
|