Skip to content

Commit

Permalink
ms->us
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Jun 18, 2019
1 parent 8d4d461 commit 738c8b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion convert/src/mono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn save_index(index: &MonoIndex, dir: &Path) -> io::Result<()>{
index_path.push("index.tsv");
let mut index_file = io::BufWriter::new(fs::File::create(index_path)?);
index_file.write_all(
b"N\tUNIX time, ms\tOS time, ms\tPrevious frame dt, ms\n"
b"N\tUNIX time, us\tOS time, us\tPrevious frame dt, us\n"
)?;

let i = index.len() - 1;
Expand Down
2 changes: 1 addition & 1 deletion convert/src/mono_tar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn save_index(index: Vec<(usize, PathBuf)>, dir: &Path) -> io::Result<()>{
let index_path = dir.join("index.tsv");
let mut index_file = io::BufWriter::new(fs::File::create(index_path)?);
index_file.write_all(
b"N\tUNIX time, ms\tOS time, ms\tPrevious frame dt, ms\n"
b"N\tUNIX time, us\tOS time, us\tPrevious frame dt, us\n"
)?;

let mut t_prev = get_timestamp(&index[0].1)?.os;
Expand Down
6 changes: 3 additions & 3 deletions convert/src/stereo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ fn save_index(index: &StereoIndex, dir: &Path) -> io::Result<()>{
index_path.push("index.tsv");
let mut index_file = io::BufWriter::new(fs::File::create(index_path)?);
index_file.write_all(
b"Pair number\tLeft frame UNIX time, ms\tRight frame UNIX time, ms\t\
Left frame OS time, ms\tRight frame OS time, ms\t\
UNIX time delta, ms\tOS time delta, ms\n"
b"Pair number\tLeft frame UNIX time, us\tRight frame UNIX time, us\t\
Left frame OS time, us\tRight frame OS time, us\t\
UNIX time delta, us\tOS time delta, us\n"
)?;

for (n, pair) in index.iter().rev() {
Expand Down

0 comments on commit 738c8b4

Please sign in to comment.