Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 3223) sorted by relevance

12345678910>>...129

/third_party/boost/libs/chrono/example/
Druntime_resolution.cpp86 class duration class
96 typedef boost::chrono::duration<double, boost::nano> tonanosec;
98 duration() {} // = default; in duration() function in runtime_resolution::duration
99 explicit duration(const rep& r) : rep_(r) {} in duration() function in runtime_resolution::duration
102 explicit duration(const tonanosec& d) in duration() function in runtime_resolution::duration
114 duration& operator+=(const duration& d) {rep_ += d.rep_; return *this;} in operator +=()
115 duration& operator-=(const duration& d) {rep_ += d.rep_; return *this;} in operator -=()
116 duration& operator*=(rep rhs) {rep_ *= rhs; return *this;} in operator *=()
117 duration& operator/=(rep rhs) {rep_ /= rhs; return *this;} in operator /=()
119 duration operator+() const {return *this;} in operator +()
[all …]
Dtime2_demo.cpp77 system_clock::duration d = t.time_since_epoch(); in __print_time()
85 void sleep_for(const boost::chrono::duration<Rep, Period>& d) in sleep_for()
102 typedef typename boost::common_type<typename Time::duration, in sleep_until()
103 typename SysTime::duration>::type D; in sleep_until()
124 bool try_lock_for(const boost::chrono::duration<Rep, Period>& d) in try_lock_for()
141 typedef typename boost::common_type<typename Time::duration, in try_lock_until()
142 typename Clock::duration>::type D; in try_lock_until()
157 bool wait_for(mutex&, const boost::chrono::duration<Rep, Period>& d) in wait_for()
172 typedef typename boost::common_type<typename Time::duration, in wait_until()
173 typename Clock::duration>::type D; in wait_until()
[all …]
Dcycle_count.cpp43 typedef boost::chrono::duration<rep, period> duration; typedef
50 return time_point(duration(++tick)); // fake access to clock cycle count in now()
58 typedef nanoseconds duration; typedef
59 typedef duration::rep rep;
60 typedef duration::period period;
69 return time_point(duration(++tick * nanosec_per_sec / frequency)); in now()
78 << duration<double, boost::nano>(clock::duration(1)).count() << " nanoseconds\n"; in cycle_count_delay()
80 clock::duration delay = duration_cast<clock::duration>(delayns); in cycle_count_delay()
87 clock::duration elapsed = end - start; in cycle_count_delay()
94 clock::duration delay = nanoseconds(500); in cycle_count_delay()
[all …]
/third_party/boost/boost/chrono/
Dduration.hpp77 class duration;
86 struct is_duration<duration<Rep, Period> >
107 struct duration_divide_imp<duration<Rep1, Period>, Rep2, true>
109 typedef duration<typename common_type<Rep1, Rep2>::type, Period> type;
113 struct duration_divide_result<duration<Rep1, Period>, Rep2, false>
114 : duration_divide_imp<duration<Rep1, Period>, Rep2>
137 struct duration_divide_imp2<Rep1, duration<Rep2, Period>, true>
144 struct duration_divide_result2<Rep1, duration<Rep2, Period>, false>
145 : duration_divide_imp2<Rep1, duration<Rep2, Period> >
169 struct duration_modulo_imp<duration<Rep1, Period>, Rep2, true>
[all …]
Dprocess_cpu_clocks.hpp35 typedef nanoseconds duration; typedef in boost::chrono::process_real_cpu_clock
36 typedef duration::rep rep;
37 typedef duration::period period;
50 typedef nanoseconds duration; typedef in boost::chrono::process_user_cpu_clock
51 typedef duration::rep rep;
52 typedef duration::period period;
64 typedef nanoseconds duration; typedef in boost::chrono::process_system_cpu_clock
65 typedef duration::rep rep;
66 typedef duration::period period;
243 operator==(const duration<process_times<Rep1>, Period1>& lhs, in operator ==()
[all …]
Dtime_point.hpp50 template <class Clock, class Duration = typename Clock::duration>
85 typename common_type<Duration1, duration<Rep2, Period2> >::type>
88 const duration<Rep2, Period2>& rhs);
92 typename common_type<duration<Rep1, Period1>, Duration2>::type>
94 const duration<Rep1, Period1>& lhs,
99 typename common_type<Duration1, duration<Rep2, Period2> >::type>
102 const duration<Rep2, Period2>& rhs);
161 typedef Duration duration; typedef in boost::chrono::time_point
162 typedef typename duration::rep rep;
163 typedef typename duration::period period;
[all …]
/third_party/boost/libs/ratio/example/
Dduration.hpp79 class duration;
88 struct is_duration<duration<Rep, Period> >
112 struct duration_divide_imp<duration<Rep1, Period>, Rep2, true>
114 typedef duration<typename boost::common_type<Rep1, Rep2>::type, Period> type;
118 struct duration_divide_result<duration<Rep1, Period>, Rep2, false>
119 : duration_divide_imp<duration<Rep1, Period>, Rep2>
142 struct duration_divide_imp2<Rep1, duration<Rep2, Period>, true>
149 struct duration_divide_result2<Rep1, duration<Rep2, Period>, false>
150 : duration_divide_imp2<Rep1, duration<Rep2, Period> >
174 struct duration_modulo_imp<duration<Rep1, Period>, Rep2, true>
[all …]
/third_party/ffmpeg/tests/ref/fate/
Dmov-aac-2048-priming1 …tream_index=0|pts=-2048|pts_time=-0.046440|dts=-2048|dts_time=-0.046440|duration=1024|duration_tim…
3 …tream_index=0|pts=-1024|pts_time=-0.023220|dts=-1024|dts_time=-0.023220|duration=1024|duration_tim…
4 packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=102…
5 …io|stream_index=0|pts=1024|pts_time=0.023220|dts=1024|dts_time=0.023220|duration=1024|duration_tim…
6 …io|stream_index=0|pts=2048|pts_time=0.046440|dts=2048|dts_time=0.046440|duration=1024|duration_tim…
7 …io|stream_index=0|pts=3072|pts_time=0.069660|dts=3072|dts_time=0.069660|duration=1024|duration_tim…
8 …io|stream_index=0|pts=4096|pts_time=0.092880|dts=4096|dts_time=0.092880|duration=1024|duration_tim…
9 …io|stream_index=0|pts=5120|pts_time=0.116100|dts=5120|dts_time=0.116100|duration=1024|duration_tim…
10 …io|stream_index=0|pts=6144|pts_time=0.139320|dts=6144|dts_time=0.139320|duration=1024|duration_tim…
11 …io|stream_index=0|pts=7168|pts_time=0.162540|dts=7168|dts_time=0.162540|duration=1024|duration_tim…
[all …]
Dmov-init-nonkeyframe1 packet|codec_type=video|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=100…
2 …eo|stream_index=0|pts=2002|pts_time=0.066733|dts=1001|dts_time=0.033367|duration=1001|duration_tim…
3 …eo|stream_index=0|pts=7007|pts_time=0.233567|dts=2002|dts_time=0.066733|duration=1001|duration_tim…
4 …eo|stream_index=0|pts=5005|pts_time=0.166833|dts=3003|dts_time=0.100100|duration=1001|duration_tim…
5 …eo|stream_index=0|pts=4004|pts_time=0.133467|dts=4004|dts_time=0.133467|duration=1001|duration_tim…
6 …eo|stream_index=0|pts=6006|pts_time=0.200200|dts=5005|dts_time=0.166833|duration=1001|duration_tim…
7 …o|stream_index=0|pts=11011|pts_time=0.367033|dts=6006|dts_time=0.200200|duration=1001|duration_tim…
8 …eo|stream_index=0|pts=9009|pts_time=0.300300|dts=7007|dts_time=0.233567|duration=1001|duration_tim…
9 …eo|stream_index=0|pts=8008|pts_time=0.266933|dts=8008|dts_time=0.266933|duration=1001|duration_tim…
10 …o|stream_index=0|pts=10010|pts_time=0.333667|dts=9009|dts_time=0.300300|duration=1001|duration_tim…
[all …]
Dgaplessenc-pcm-to-mov-aac8 duration=12.000000
10 packet|pts=-1024|dts=-1024|duration=1024|flags=KDside_data|
12 packet|pts=0|dts=0|duration=1024|flags=K_
13 packet|pts=1024|dts=1024|duration=1024|flags=K_
14 packet|pts=2048|dts=2048|duration=1024|flags=K_
15 packet|pts=3072|dts=3072|duration=1024|flags=K_
16 packet|pts=4096|dts=4096|duration=1024|flags=K_
17 packet|pts=5120|dts=5120|duration=1024|flags=K_
18 packet|pts=521216|dts=521216|duration=1024|flags=K_
19 packet|pts=522240|dts=522240|duration=1024|flags=K_
[all …]
Dgaplessinfo-itunes18 duration=29.350023
10 packet|pts=0|dts=0|duration=1024|flags=K_side_data|
12 packet|pts=1024|dts=1024|duration=1024|flags=K_
13 packet|pts=2048|dts=2048|duration=1024|flags=K_
14 packet|pts=3072|dts=3072|duration=1024|flags=K_
15 packet|pts=4096|dts=4096|duration=1024|flags=K_
16 packet|pts=5120|dts=5120|duration=1024|flags=K_
17 packet|pts=6144|dts=6144|duration=1024|flags=K_
18 packet|pts=1286144|dts=1286144|duration=1024|flags=K_
19 packet|pts=1287168|dts=1287168|duration=1024|flags=K_
[all …]
Dgaplessinfo-itunes28 duration=2.391655
10 packet|pts=0|dts=0|duration=1024|flags=K_side_data|
12 packet|pts=1024|dts=1024|duration=1024|flags=K_
13 packet|pts=2048|dts=2048|duration=1024|flags=K_
14 packet|pts=3072|dts=3072|duration=1024|flags=K_
15 packet|pts=4096|dts=4096|duration=1024|flags=K_
16 packet|pts=5120|dts=5120|duration=1024|flags=K_
17 packet|pts=6144|dts=6144|duration=1024|flags=K_
18 packet|pts=97280|dts=97280|duration=1024|flags=K_
19 packet|pts=98304|dts=98304|duration=1024|flags=K_
[all …]
Dgaplessenc-itunes-to-ipod-aac8 duration=2.344000
10 packet|pts=-1024|dts=-1024|duration=1024|flags=KDside_data|
12 packet|pts=0|dts=0|duration=1024|flags=K_
13 packet|pts=1024|dts=1024|duration=1024|flags=K_
14 packet|pts=2048|dts=2048|duration=1024|flags=K_
15 packet|pts=3072|dts=3072|duration=1024|flags=K_
16 packet|pts=4096|dts=4096|duration=1024|flags=K_
17 packet|pts=5120|dts=5120|duration=1024|flags=K_
18 packet|pts=95232|dts=95232|duration=1024|flags=K_
19 packet|pts=96256|dts=96256|duration=1024|flags=K_
[all …]
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DDurations.java114 public static boolean isValid(Duration duration) { in isValid() argument
115 return isValid(duration.getSeconds(), duration.getNanos()); in isValid()
144 public static boolean isNegative(Duration duration) { in isNegative() argument
145 checkValid(duration); in isNegative()
146 return (duration.getSeconds() == 0) ? duration.getNanos() < 0 : duration.getSeconds() < 0; in isNegative()
156 public static Duration checkNotNegative(Duration duration) { in checkNotNegative() argument
157 checkValid(duration); in checkNotNegative()
158 checkArgument(!isNegative(duration), "duration (%s) must not be negative", toString(duration)); in checkNotNegative()
159 return duration; in checkNotNegative()
169 public static Duration checkPositive(Duration duration) { in checkPositive() argument
[all …]
DTimeUtil.java107 public static String toString(Duration duration) { in toString() argument
108 return Durations.toString(duration); in toString()
165 public static long toMillis(Duration duration) { in toMillis() argument
166 return Durations.toMillis(duration); in toMillis()
211 public static long toMicros(Duration duration) { in toMicros() argument
212 return Durations.toMicros(duration); in toMicros()
251 public static long toNanos(Duration duration) { in toNanos() argument
252 return Durations.toNanos(duration); in toNanos()
329 public static Duration multiply(Duration duration, double times) { in multiply() argument
330 double result = duration.getSeconds() * times + duration.getNanos() * times / 1000000000.0; in multiply()
[all …]
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DTimeUtilTest.java243 Duration duration = TimeUtil.distance(start, end); in testDurationStringFormat() local
244 assertEquals("315537897599.999999999s", TimeUtil.toString(duration)); in testDurationStringFormat()
245 duration = TimeUtil.distance(end, start); in testDurationStringFormat()
246 assertEquals("-315537897599.999999999s", TimeUtil.toString(duration)); in testDurationStringFormat()
249 duration = Duration.newBuilder().setSeconds(1).build(); in testDurationStringFormat()
250 assertEquals("1s", TimeUtil.toString(duration)); in testDurationStringFormat()
251 duration = Duration.newBuilder().setNanos(10000000).build(); in testDurationStringFormat()
252 assertEquals("0.010s", TimeUtil.toString(duration)); in testDurationStringFormat()
253 duration = Duration.newBuilder().setNanos(10000).build(); in testDurationStringFormat()
254 assertEquals("0.000010s", TimeUtil.toString(duration)); in testDurationStringFormat()
[all …]
/third_party/boost/libs/chrono/test/duration/
Dconstructor_pass.cpp71 boost::chrono::duration<double, boost::micro> us(1); in main()
72 boost::chrono::duration<double, boost::milli> ms = us; in main()
75 BOOST_CONSTEXPR boost::chrono::duration<double, boost::micro> us(1); in main()
76 BOOST_CONSTEXPR boost::chrono::duration<double, boost::milli> ms = us; in main()
82 boost::chrono::duration<int> i(3); in main()
83 boost::chrono::duration<double> d = i; in main()
86 BOOST_CONSTEXPR boost::chrono::duration<int> i(3); in main()
87 BOOST_CONSTEXPR boost::chrono::duration<double> d = i; in main()
93 check_default<boost::chrono::duration<Rep> >(); in main()
96 check_constexpr<boost::chrono::duration<int> >(); in main()
[all …]
Darithmetic_pass.cpp154 boost::chrono::duration<int, boost::ratio<2, 3> > s1(3); in main()
155 boost::chrono::duration<int, boost::ratio<3, 5> > s2(5); in main()
156 boost::chrono::duration<int, boost::ratio<1, 15> > r = s1 + s2; in main()
160 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<2, 3> > s1(3); in main()
161 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<3, 5> > s2(5); in main()
162 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<1, 15> > r = s1 + s2; in main()
166 boost::chrono::duration<int, boost::ratio<2, 3> > s1(3); in main()
167 boost::chrono::duration<double, boost::ratio<3, 5> > s2(5); in main()
168 boost::chrono::duration<double, boost::ratio<1, 15> > r = s1 + s2; in main()
172 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<2, 3> > s1(3); in main()
[all …]
Dcomparisons_pass.cpp74 boost::chrono::duration<int, boost::ratio<2, 3> > s1(9); in main()
75 boost::chrono::duration<int, boost::ratio<3, 5> > s2(10); in main()
80 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<2, 3> > s1(9); in main()
81 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<3, 5> > s2(10); in main()
86 boost::chrono::duration<int, boost::ratio<2, 3> > s1(10); in main()
87 boost::chrono::duration<int, boost::ratio<3, 5> > s2(9); in main()
92 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<2, 3> > s1(10); in main()
93 BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<3, 5> > s2(9); in main()
98 boost::chrono::duration<int, boost::ratio<2, 3> > s1(9); in main()
99 boost::chrono::duration<double, boost::ratio<3, 5> > s2(10); in main()
[all …]
/third_party/boost/libs/icl/test/
Dtest_type_lists.hpp56 ,boch::duration<int>
57 ,boch::duration<double>
59 ,boch::time_point<Now, boch::duration<double> >
69 typedef boch::duration<long long, boost::ratio<1,113> > duration_long2_113s;
70 typedef boch::duration<int, boost::ratio<11,113> > duration_int_11_113s;
71 … typedef boch::duration<boost::rational<int>, boost::ratio<101,997> > duration_rational_101_997s;
73 typedef boch::time_point<Now, boch::duration<double> > Now_time_double;
74 typedef boch::time_point<Now, boch::duration<boost::rational<int> > > Now_time_rational;
77 typedef boch::duration<int> bicremental_type_1;
78 typedef boch::duration<double> bicremental_type_2;
[all …]
/third_party/boost/libs/chrono/test/traits/
Dcommon_type_duration_pass.cpp31 test<boost::chrono::duration<int, boost::ratio<1, 100> >, in testall()
32 boost::chrono::duration<long, boost::ratio<1, 1000> >, in testall()
33 boost::chrono::duration<long, boost::ratio<1, 1000> > >(); in testall()
34 test<boost::chrono::duration<long, boost::ratio<1, 100> >, in testall()
35 boost::chrono::duration<int, boost::ratio<1, 1000> >, in testall()
36 boost::chrono::duration<long, boost::ratio<1, 1000> > >(); in testall()
37 test<boost::chrono::duration<char, boost::ratio<1, 30> >, in testall()
38 boost::chrono::duration<short, boost::ratio<1, 1000> >, in testall()
39 boost::chrono::duration<int, boost::ratio<1, 3000> > >(); in testall()
40 test<boost::chrono::duration<double, boost::ratio<21, 1> >, in testall()
[all …]
Dcommon_type_time_point_pass.cpp35 test<boost::chrono::duration<int, boost::ratio<1, 100> >, in testall()
36 boost::chrono::duration<long, boost::ratio<1, 1000> >, in testall()
37 boost::chrono::duration<long, boost::ratio<1, 1000> > >(); in testall()
38 test<boost::chrono::duration<long, boost::ratio<1, 100> >, in testall()
39 boost::chrono::duration<int, boost::ratio<1, 1000> >, in testall()
40 boost::chrono::duration<long, boost::ratio<1, 1000> > >(); in testall()
41 test<boost::chrono::duration<char, boost::ratio<1, 30> >, in testall()
42 boost::chrono::duration<short, boost::ratio<1, 1000> >, in testall()
43 boost::chrono::duration<int, boost::ratio<1, 3000> > >(); in testall()
44 test<boost::chrono::duration<double, boost::ratio<21, 1> >, in testall()
[all …]
/third_party/boost/boost/chrono/detail/inlined/win/
Dthread_clock.hpp38 duration user = duration( in now()
39 ((static_cast<duration::rep>(user_time.dwHighDateTime) << 32) in now()
42 duration system = duration( in now()
43 ((static_cast<duration::rep>(system_time.dwHighDateTime) << 32) in now()
66 return thread_clock::time_point(duration(0)); in now()
82 duration user = duration( in now()
83 ((static_cast<duration::rep>(user_time.dwHighDateTime) << 32) in now()
86 duration system = duration( in now()
87 ((static_cast<duration::rep>(system_time.dwHighDateTime) << 32) in now()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/
DBasicDurationFormatter.java11 package ohos.global.icu.impl.duration;
59 long duration = targetDate.getTime() - now;
60 return formatDurationFrom(duration, now);
64 public String formatDurationFromNow(long duration) {
65 return formatDurationFrom(duration, System.currentTimeMillis());
69 public String formatDurationFrom(long duration, long referenceDate) {
70 String s = doFallback(duration, referenceDate);
72 Period p = doBuild(duration, referenceDate);
107 protected String doFallback(long duration, long referenceDate) {
110 && Math.abs(duration) >= fallbackLimit) {
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DBasicDurationFormatter.java10 package com.ibm.icu.impl.duration;
58 long duration = targetDate.getTime() - now;
59 return formatDurationFrom(duration, now);
63 public String formatDurationFromNow(long duration) {
64 return formatDurationFrom(duration, System.currentTimeMillis());
68 public String formatDurationFrom(long duration, long referenceDate) {
69 String s = doFallback(duration, referenceDate);
71 Period p = doBuild(duration, referenceDate);
106 protected String doFallback(long duration, long referenceDate) {
109 && Math.abs(duration) >= fallbackLimit) {
[all …]

12345678910>>...129