From 354b96d98fa49e99a1de4528008c8fa5897d4307 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 31 Oct 2023 21:31:50 -0700 Subject: [PATCH] collector.time() --- src/instruction.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/instruction.rs b/src/instruction.rs index f8880cb..08a27bb 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -25,7 +25,10 @@ impl InstructionCollector{ instruction:None } } - + #[inline] + pub fn time(&self)->Time{ + self.time + } pub fn collect(&mut self,instruction:Option>){ match instruction{ Some(unwrap_instruction)=>{