further performance improvements
This commit is contained in:
@@ -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