Skip to content

Commit

Permalink
PR #8462 from Avishag: Playback slider shows milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel authored Mar 3, 2021
2 parents fd2a5e2 + 8c70e0b commit 087b29a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/model-views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4407,12 +4407,13 @@ namespace rs2
duration -= mm;
auto ss = duration_cast<seconds>(duration);
duration -= ss;
auto ms = duration_cast<milliseconds>(duration);

std::ostringstream stream;
stream << std::setfill('0') << std::setw(hhh.count() >= 10 ? 2 : 1) << hhh.count() << ':' <<
std::setfill('0') << std::setw(2) << mm.count() << ':' <<
std::setfill('0') << std::setw(2) << ss.count();// << '.' <<
//std::setfill('0') << std::setw(3) << ms.count();
std::setfill('0') << std::setw(2) << ss.count() << '.' <<
std::setfill('0') << std::setw(3) << ms.count();
return stream.str();
}

Expand Down

0 comments on commit 087b29a

Please sign in to comment.