From 45d1a7a73c262249785cf0424b340d89b840e8f7 Mon Sep 17 00:00:00 2001 From: shu5620 Date: Sun, 1 Oct 2023 15:41:33 +0900 Subject: [PATCH] measure ix_opt_buffer --- border-async-trainer/src/async_trainer/base.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/border-async-trainer/src/async_trainer/base.rs b/border-async-trainer/src/async_trainer/base.rs index 808601f6..6267512f 100644 --- a/border-async-trainer/src/async_trainer/base.rs +++ b/border-async-trainer/src/async_trainer/base.rs @@ -526,7 +526,10 @@ where } fn get_buffer_for_opt(&self) -> Arc> { + let time_tmp = SystemTime::now(); let ix_buffer = self.splitted_buffers.ix_opt_buffer(); + println!("time ix_opt_buffer: {}", time_tmp.elapsed().unwrap().as_secs_f32()); + self.splitted_buffers.splitted_buffers[ix_buffer].clone() }