further performance improvements

This commit is contained in:
sergeysav committed 2024-12-29 13:36:23 -05:00
1 parent 12f27bad69
commit a20db6c522
5 files changed
+80 -35

No files matched your search

+2 -2
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(