Home
last modified time | relevance | path

Searched refs:ToDuration (Results 1 – 12 of 12) sorted by relevance

/external/libcxx/test/std/utilities/time/time.point/time.point.cast/
Dround.pass.cpp23 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()
Dceil.pass.cpp23 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()
Dfloor.pass.cpp23 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()
Dtime_point_cast.pass.cpp24 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/
Dceil.pass.cpp25 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()
Dfloor.pass.cpp24 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()
Dround.pass.cpp24 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()
Dduration_cast.pass.cpp25 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/
Dtime_util.cc411 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/
DTimeExtensions.cs75 public static Duration ToDuration(this TimeSpan timeSpan) in ToDuration() method in Google.Protobuf.WellKnownTypes.TimeExtensions
/external/syzkaller/vendor/cloud.google.com/go/internal/optional/
Doptional.go98 func ToDuration(v Duration) time.Duration { func
/external/libcxx/include/
Dchrono22 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 …]