further performance improvements

This commit is contained in:
2024-12-29 13:36:23 -05:00
parent 12f27bad69
commit a20db6c522
5 changed files with 80 additions and 35 deletions

View File

@@ -190,8 +190,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
let mut next_time = Instant::now();
let mut index = 0;
while !cancellation_token.is_cancelled() {
next_time += Duration::from_millis(100);
index += 10;
next_time += Duration::from_millis(10);
index += 1;
tokio::time::sleep_until(next_time).await;
sin_tlm_handle
.publish(