Browse Source

Fix loop duration logging

tags/v0.0.0-test.4
Philipp Oppermann 3 years ago
parent
commit
c71cc70340
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/python/server.rs

+ 3
- 1
src/python/server.rs View File

@@ -52,6 +52,8 @@ pub async fn run(variables: PythonCommand) -> PyResult<()> {
let mut futures_put = vec![];

loop {
let loop_start = Instant::now();

let mut futures = vec![];
for (_, v) in subscribers.iter_mut() {
futures.push(timeout(duration, v.next()));
@@ -87,7 +89,7 @@ pub async fn run(variables: PythonCommand) -> PyResult<()> {
}

states_hash = hash(&states);
println!("loop {:#?}", now.elapsed());
println!("loop {:#?}", loop_start.elapsed());
}
}



Loading…
Cancel
Save