Skip to content

Commit

Permalink
Add method RecordOwned::tid corresponds to Record::tid
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Oct 7, 2024
1 parent 16e259e commit cdbe5b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spdlog/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ impl RecordOwned {
self.inner.time
}

/// Gets the TID when the record was created.
#[must_use]
pub fn tid(&self) -> u64 {
self.inner.tid
}

// When adding more getters, also add to `Record`
}

Expand Down

0 comments on commit cdbe5b0

Please sign in to comment.