{Tag,Song}Print, PlayerCommands: report song duration with milliseconds precision

This commit is contained in:
Max Kellermann
2014-11-25 17:46:43 +01:00
parent 83fd822e8b
commit 70b5a81a29
5 changed files with 22 additions and 4 deletions

View File

@@ -122,5 +122,8 @@ song_print_info(Client &client, const DetachedSong &song, bool base)
const auto duration = song.GetDuration();
if (!duration.IsNegative())
client_printf(client, "Time: %u\n", duration.RoundS());
client_printf(client, "Time: %i\n"
"duration: %1.3f\n",
duration.RoundS(),
duration.ToDoubleS());
}