Skip to content

Commit

Permalink
Display songlength milliseconds if supported (issue #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Apr 13, 2021
1 parent 32b0732 commit 3d2edee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ void ConsolePlayer::menu ()
const uint_least32_t seconds = m_timer.stop / 1000;
cerr << setw(2) << setfill('0') << ((seconds / 60) % 100)
<< ':' << setw(2) << setfill('0') << (seconds % 60);
#ifdef FEAT_NEW_SONLEGTH_DB
cerr << '.' << setw(3) << m_timer.stop % 1000;
#endif
}
else if (m_timer.valid)
cerr << "FOREVER";
Expand Down

0 comments on commit 3d2edee

Please sign in to comment.