Skip to content

Commit 6f521f1

Browse files
committed
Addresses review comments.
1 parent de82e45 commit 6f521f1

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

libcxx/include/__chrono/tai_clock.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ using tai_seconds = tai_time<seconds>;
4848
// initial 10s offset).
4949
//
5050
// Note this does not specify what the UTC offset before 1958-01-01 00:00:00
51-
// TAI is. However the member functions are fully specified in the standard.
51+
// TAI is, nor does it follow the "real" TAI clock between 1958-01-01 and the
52+
// start of the UTC epoch. So while the member functions are fully specified in
53+
// the standard, they do not technically follow the "real-world" TAI clock with
54+
// 100% accuracy.
55+
//
5256
// https://koka-lang.github.io/koka/doc/std_time_utc.html contains more
5357
// information and references.
5458
class tai_clock {

libcxx/test/std/time/time.clock/time.clock.tai/tai_time.ostream.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
// <chrono>
2323

24-
// class taitem_clock;
24+
// class tai_clock;
2525

2626
// template<class charT, class traits, class Duration>
2727
// basic_ostream<charT, traits>&

libcxx/test/std/time/time.clock/time.clock.tai/time.clock.tai.members/from_utc.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,6 @@ int main(int, const char**) {
156156
test_known_values();
157157
test_transitions();
158158
test_return_type();
159+
160+
return 0;
159161
}

libcxx/test/std/time/time.clock/time.clock.tai/time.clock.tai.members/now.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ int main(int, const char**) {
2828

2929
assert(t >= clock::time_point::min());
3030
assert(t <= clock::time_point::max());
31+
32+
return 0;
3133
}

libcxx/test/std/time/time.clock/time.clock.tai/time.clock.tai.members/to_utc.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,6 @@ int main(int, const char**) {
158158
test_known_values();
159159
test_transitions();
160160
test_return_type();
161+
162+
return 0;
161163
}

0 commit comments

Comments
 (0)