tiny.trace.Timepoint
Defined in event.
API (6)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/trace/src/event.zig:15
zig
pub const Timepoint = struct { epoch: u64 = 0, thread_id: ThreadId = 0, seq: u64 = 0, pub fn beforeOrEqual(self: Timepoint, other: Timepoint) bool { if (self.epoch != other.epoch) return self.epoch < other.epoch; if (self.seq != other.seq) return self.seq <= other.seq; return self.thread_id <= other.thread_id; } pub fn eql(left: Timepoint, right: Timepoint) bool { return left.epoch == right.epoch and left.thread_id == right.thread_id and left.seq == right.seq; } pub fn write(self: Timepoint, writer: *std.Io.Writer) !void { try writer.print("{d}:{d}:{d}", .{ self.epoch, self.thread_id, self.seq }); }};Source: lib/trace/src/root.zig:40
zig
pub const Timepoint = event.Timepoint;Audit
| Definitions | 4 |
|---|---|
| Public names | 8 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |