OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:chrono
(Results
1 - 25
of
207
) sorted by null
1
2
3
4
5
6
7
8
9
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cast/
toduration.fail.cpp
10
// <
chrono
>
20
#include <
chrono
>
24
std::
chrono
::duration_cast<int>(std::
chrono
::milliseconds(3));
duration_cast.pass.cpp
10
// <
chrono
>
19
#include <
chrono
>
28
typedef decltype(std::
chrono
::duration_cast<ToDuration>(f)) R;
30
assert(std::
chrono
::duration_cast<ToDuration>(f) == d);
36
test(std::
chrono
::milliseconds(7265000), std::
chrono
::hours(2));
37
test(std::
chrono
::milliseconds(7265000), std::
chrono
::minutes(121));
38
test(std::
chrono
::milliseconds(7265000), std::
chrono
::seconds(7265))
[
all
...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cons/
rep01.fail.cpp
10
// <
chrono
>
19
#include <
chrono
>
25
std::
chrono
::duration<int> d = 1;
rep02.fail.cpp
10
// <
chrono
>
19
#include <
chrono
>
25
std::
chrono
::duration<Rep> d(1);
rep03.fail.cpp
10
// <
chrono
>
19
#include <
chrono
>
23
std::
chrono
::duration<int> d(1.);
convert_float_to_int.fail.cpp
10
// <
chrono
>
19
#include <
chrono
>
23
std::
chrono
::duration<double> d;
24
std::
chrono
::duration<int> i = d;
convert_inexact.fail.cpp
10
// <
chrono
>
19
#include <
chrono
>
23
std::
chrono
::microseconds us(1);
24
std::
chrono
::milliseconds ms = us;
convert_exact.pass.cpp
10
// <
chrono
>
19
#include <
chrono
>
25
std::
chrono
::milliseconds ms(1);
26
std::
chrono
::microseconds us = ms;
31
constexpr std::
chrono
::milliseconds ms(1);
32
constexpr std::
chrono
::microseconds us = ms;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cast/
toduration.fail.cpp
10
// <
chrono
>
20
#include <
chrono
>
24
typedef std::
chrono
::system_clock Clock;
25
typedef std::
chrono
::time_point<Clock, std::
chrono
::milliseconds> FromTimePoint;
26
typedef std::
chrono
::time_point<Clock, std::
chrono
::minutes> ToTimePoint;
27
std::
chrono
::time_point_cast<ToTimePoint>(FromTimePoint(std::
chrono
::milliseconds(3)));
time_point_cast.pass.cpp
10
// <
chrono
>
18
#include <
chrono
>
26
typedef std::
chrono
::system_clock Clock;
27
typedef std::
chrono
::time_point<Clock, FromDuration> FromTimePoint;
28
typedef std::
chrono
::time_point<Clock, ToDuration> ToTimePoint;
31
typedef decltype(std::
chrono
::time_point_cast<ToDuration>(f)) R;
33
assert(std::
chrono
::time_point_cast<ToDuration>(f) == t);
38
test(std::
chrono
::milliseconds(7265000), std::
chrono
::hours(2));
39
test(std::
chrono
::milliseconds(7265000), std::chrono::minutes(121))
[
all
...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.clock/time.clock.system/
rep_signed.pass.cpp
10
// <
chrono
>
16
#include <
chrono
>
21
assert(std::
chrono
::system_clock::duration::min() <
22
std::
chrono
::system_clock::duration::zero());
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/
duration.fail.cpp
10
// <
chrono
>
17
#include <
chrono
>
21
typedef std::
chrono
::duration<std::
chrono
::milliseconds> D;
positive_num.fail.cpp
10
// <
chrono
>
16
#include <
chrono
>
20
typedef std::
chrono
::duration<int, std::ratio<5, -1> > D;
default_ratio.pass.cpp
10
// <
chrono
>
19
#include <
chrono
>
24
static_assert((std::is_same<std::
chrono
::duration<int, std::ratio<1> >,
25
std::
chrono
::duration<int> >::value), "");
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/
duration.fail.cpp
10
// <
chrono
>
16
#include <
chrono
>
20
typedef std::
chrono
::time_point<std::
chrono
::system_clock, int> T;
default_duration.pass.cpp
10
// <
chrono
>
19
#include <
chrono
>
24
static_assert((std::is_same<std::
chrono
::system_clock::duration,
25
std::
chrono
::time_point<std::
chrono
::system_clock>::duration>::value), "");
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cons/
duration.fail.cpp
10
// <
chrono
>
18
#include <
chrono
>
22
typedef std::
chrono
::system_clock Clock;
23
typedef std::
chrono
::milliseconds Duration;
24
std::
chrono
::time_point<Clock, Duration> t = Duration(3);
convert.fail.cpp
10
// <
chrono
>
19
#include <
chrono
>
23
typedef std::
chrono
::system_clock Clock;
24
typedef std::
chrono
::milliseconds Duration1;
25
typedef std::
chrono
::microseconds Duration2;
27
std::
chrono
::time_point<Clock, Duration2> t2(Duration2(3));
28
std::
chrono
::time_point<Clock, Duration1> t1 = t2;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
op_divide_rep.fail.cpp
10
// <
chrono
>
18
#include <
chrono
>
24
std::
chrono
::duration<Rep> d(Rep(15));
op_mod_rep.fail.cpp
10
// <
chrono
>
18
#include <
chrono
>
24
std::
chrono
::duration<Rep> d(Rep(15));
op_times_rep1.fail.cpp
10
// <
chrono
>
22
#include <
chrono
>
28
std::
chrono
::duration<Rep> d;
op_times_rep2.fail.cpp
10
// <
chrono
>
22
#include <
chrono
>
28
std::
chrono
::duration<Rep> d;
op_mod_duration.pass.cpp
10
// <
chrono
>
19
#include <
chrono
>
25
std::
chrono
::nanoseconds ns1(15);
26
std::
chrono
::nanoseconds ns2(6);
27
std::
chrono
::nanoseconds r = ns1 % ns2;
31
std::
chrono
::microseconds us1(15);
32
std::
chrono
::nanoseconds ns2(28);
33
std::
chrono
::nanoseconds r = us1 % ns2;
37
std::
chrono
::duration<int, std::ratio<3, 5> > s1(6);
38
std::
chrono
::duration<int, std::ratio<2, 3> > s2(3)
[
all
...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
zero.pass.cpp
10
// <
chrono
>
14
#include <
chrono
>
21
assert(std::
chrono
::duration_values<int>::zero() == 0);
22
assert(std::
chrono
::duration_values<Rep>::zero() == 0);
24
static_assert(std::
chrono
::duration_values<int>::zero() == 0, "");
25
static_assert(std::
chrono
::duration_values<Rep>::zero() == 0, "");
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.arithmetic/
op_++.pass.cpp
10
// <
chrono
>
16
#include <
chrono
>
21
std::
chrono
::hours h(3);
22
std::
chrono
::hours& href = ++h;
Completed in 223 milliseconds
1
2
3
4
5
6
7
8
9