further performance improvements
This commit is contained in:
1 parent
12f27bad69
commit
a20db6c522
5 files changed
+80
-35
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user