Skip to content

Commit d26b706

Browse files
committed
output progres in tf2tfs
1 parent be922a3 commit d26b706

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tf_mcap/src/bin/tf2tfs.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ fn main() -> Result<(), anyhow::Error> {
8181
let start_sec = duration_to_f64(tf_buffer.start_time());
8282
let end_sec = duration_to_f64(tf_buffer.end_time());
8383
let steps = ((end_sec - start_sec) / resolution) as usize;
84+
println!("doing {steps} lookups");
8485

8586
let mut count = 0;
8687
for ind in 0..steps {
88+
if ind % 1000 == 0 {
89+
println!("lookup {ind} / {steps}");
90+
}
8791
let offset_sec = ind as f64 * resolution;
8892
let stamp = tf_util::f64_to_stamp(start_sec + offset_sec);
8993
let (tfm, _tf_errors) = tf2tf_to_tfm(&tf_buffer, &tf2tf_config, Some(stamp.clone()));

0 commit comments

Comments
 (0)