Skip to content

Commit c6a41ce

Browse files
Merge pull request #5 from jasondilworth56/feature/tick
Adds a public interface for the Sample tick
2 parents 72f66f1 + ce5d7b3 commit c6a41ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/telemetry.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@ impl Sample {
405405
}
406406
}
407407

408+
/// Get the current tick
409+
pub fn tick(&self) -> i32 {
410+
self.tick
411+
}
412+
408413
///
409414
/// Check if a given variable is available in the telemetry sample
410415
pub fn has(&self, name: &'static str) -> bool {

0 commit comments

Comments
 (0)