| ... | @@ -981,6 +981,10 @@ pub const Timestamp = struct { | ... | @@ -981,6 +981,10 @@ pub const Timestamp = struct { |
| 981 | const now_ts = clock.now(io); | 981 | const now_ts = clock.now(io); |
| 982 | return t.durationTo(now_ts); | 982 | return t.durationTo(now_ts); |
| 983 | } | 983 | } |
| | 984 | |
| | 985 | pub fn compare(lhs: Timestamp, op: math.CompareOperator, rhs: Timestamp) bool { |
| | 986 | return math.compare(lhs.nanoseconds, op, rhs.nanoseconds); |
| | 987 | } |
| 984 | }; | 988 | }; |
| 985 | | 989 | |
| 986 | pub const Duration = struct { | 990 | pub const Duration = struct { |