]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/chrono/example/time2_demo_output.txt
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / chrono / example / time2_demo_output.txt
1 // time2_demo.output ----------------------------------------------------------//
2
3 // Copyright 2008 Howard Hinnant
4 // Copyright 2008 Beman Dawes
5
6 // Distributed under the Boost Software License, Version 1.0.
7 // See http://www.boost.org/LICENSE_1_0.txt
8
9 Running basic examples
10 sleep_for 3000000 microseconds
11 sleep_for 1 microseconds
12 sleep_until 10:47:17.728293 which is 4499340 microseconds away
13 try_lock_for 30000 microseconds
14 try_lock_until 10:47:17.728285 which is 4499303 microseconds away
15 wait_for 60000000 microseconds
16 wait_until 10:47:17.728285 which is 4499264 microseconds away
17 sleep_for 250000 microseconds
18 sleep_until 10:47:14.729077 which is 1499979 microseconds away
19 ***************
20 * testStdUser *
21 ***************
22 100 hours expressed as hours = 100
23 100 hours expressed as nanoseconds = 360000000000000
24 200 hours expressed as nanoseconds = 720000000000000
25 300 hours expressed as nanoseconds = 1080000000000000
26 hr = ns; // does not compile
27 hr * ns; // does not compile
28 duration<double> has count() = 2.5
29 seconds sec = duration<double> won't compile
30 seconds has count() = 2
31
32 *************
33 * testUser1 *
34 *************
35 Speed = 24.5872 meters/sec
36 Acceleration = 9.81456 meters/sec^2
37 Distance = 13.5204 meters
38 There are 125/201168 miles/meter which is approximately 0.000621371
39 There are 201168/125 meters/mile which is approximately 1609.34
40 1 attosecond is 1e-18 seconds
41 sec = as; // compiles
42 1 second is 1e+18 attoseconds
43 as = sec; // compiles
44
45 *************
46 * testUser2 *
47 *************
48 100 years expressed as years = 100
49 100 years expressed as nanoseconds = 3155695200000000000
50 200 years expressed as nanoseconds = 6311390400000000000
51 300 years expressed as nanoseconds = inf
52 yr = ns; // does not compile
53 ps = yr; // does not compile
54 100 years expressed as picoseconds = inf
55 0.1 years expressed as picoseconds = 3155695200000000000
56 200 million years ago encoded in years: -200000000
57 200 million years ago encoded in days: -73048500000
58 200 million years ago encoded in millennium: -200000
59 Demonstrate "uninitialized protection" behavior:
60 nan
61
62 d = 3e-09
63 d = 10800
64 d = 0.666667
65 d = 10799.999999997
66 292 years of hours = 2559672hr
67 Add a nanosecond = 9214819200000000001ns
68 Find the difference = 1ns
69 244,000 years of hours = 2138904000hr
70 Add a microsecond = 7700054400000000001us
71 Find the difference = 1us
72 ********* nanoseconds *********
73 The period of nanoseconds is 1e-09 seconds.
74 The frequency of nanoseconds is 1e+09 Hz.
75 The representation is integral
76 The precision is 1e-09 seconds.
77 The range is +/- 292.277 years.
78 sizeof(nanoseconds) = 8
79 ********* microseconds *********
80 The period of microseconds is 1e-06 seconds.
81 The frequency of microseconds is 1e+06 Hz.
82 The representation is integral
83 The precision is 1e-06 seconds.
84 The range is +/- 292277 years.
85 sizeof(microseconds) = 8
86 ********* milliseconds *********
87 The period of milliseconds is 0.001 seconds.
88 The frequency of milliseconds is 1000 Hz.
89 The representation is integral
90 The precision is 0.001 seconds.
91 The range is +/- 2.92277e+08 years.
92 sizeof(milliseconds) = 8
93 ********* seconds *********
94 The period of seconds is 1 seconds.
95 The frequency of seconds is 1 Hz.
96 The representation is integral
97 The precision is 1 seconds.
98 The range is +/- 2.92277e+11 years.
99 sizeof(seconds) = 8
100 ********* minutes *********
101 The period of minutes is 60 seconds.
102 The frequency of minutes is 0.0166667 Hz.
103 The representation is integral
104 The precision is 60 seconds.
105 The range is +/- 4083.06 years.
106 sizeof(minutes) = 4
107 ********* hours *********
108 The period of hours is 3600 seconds.
109 The frequency of hours is 0.000277778 Hz.
110 The representation is integral
111 The precision is 3600 seconds.
112 The range is +/- 244984 years.
113 sizeof(hours) = 4
114 ********* duration<double> *********
115 The period of duration<double> is 1 seconds.
116 The frequency of duration<double> is 1 Hz.
117 The representation is floating point
118 The precision is the most significant 15 decimal digits.
119 The range is +/- 5.69666e+300 years.
120 sizeof(duration<double>) = 8
121 success
122 test_with_xtime
123 {3,251000}
124 3251 milliseconds
125 {3,251000}
126 {3,0}
127 {3,1}
128 system_clock test
129 paused 5001000 nanoseconds
130 system_clock resolution estimate: 0 nanoseconds
131 monotonic_clock test
132 paused 5000181 nanoseconds
133 monotonic_clock resolution estimate: 97 nanoseconds
134 high_resolution_clock test
135 paused 5000277 nanoseconds
136 high_resolution_clock resolution estimate: 96 nanoseconds
137 mixed clock test
138 Add 5 milliseconds to a high_resolution_clock::time_point
139 Subtracting system_clock::time_point from monotonic_clock::time_point doesn't compile
140 subtract high_resolution_clock::time_point from monotonic_clock::time_point and add that to a system_clock::time_point
141 subtract two system_clock::time_point's and output that in microseconds:
142 5000 microseconds
143 timeval_demo system clock test
144 sizeof xtime_clock::time_point = 8
145 sizeof xtime_clock::duration = 8
146 sizeof xtime_clock::rep = 8
147 paused 5001000 nanoseconds
148 runtime_resolution test
149 paused 5000205 nanoseconds
150 C map test
151 It is now 10:47:13 2008-4-22
152 Round-tripping through the C interface truncated the precision by 255445 microseconds
153 2160000
154 0
155 3600000
156 0
157 2999998997 * 1/1000000000 seconds
158 0 * 1/1000000000 seconds
159 15778476000000000 microseconds
160 paused 5001000 nanoseconds
161 ********* milliseconds(3) * 2.5 *********
162 The period of milliseconds(3) * 2.5 is 0.001 seconds.
163 The frequency of milliseconds(3) * 2.5 is 1000 Hz.
164 The representation is floating point
165 The precision is the most significant 15 decimal digits.
166 The range is +/- 5.69666e+297 years.
167 sizeof(milliseconds(3) * 2.5) = 8
168 7.5
169 milliseconds ms(3.5) doesn't compile
170
171 Simulated 400MHz clock which has a tick period of 2.5 nanoseconds
172 delay = 500 nanoseconds which is 200 cycles
173 paused 201 cycles which is 502 nanoseconds
174
175 Simulated 400MHz clock modeled with nanoseconds
176 delay = 500 nanoseconds
177 paused 503 nanoseconds
178
179 Simulated 1500MHz clock which has a tick period of 0.666667 nanoseconds
180 delay = 500 nanoseconds which is 750 cycles
181 paused 751 cycles which is 500 nanoseconds
182
183 Simulated 1500MHz clock modeled with nanoseconds
184 delay = 500 nanoseconds
185 paused 500 nanoseconds
186 duration<unsigned>::min().count() = 0
187 duration<unsigned>::zero().count() = 0
188 duration<unsigned>::max().count() = 4294967295
189 duration<int>::min().count() = -2147483647
190 duration<int>::zero().count() = 0
191 duration<int>::max().count() = 2147483647