diff --git a/src/Chrono.hxx b/src/Chrono.hxx index e72975ea8..521e03c35 100644 --- a/src/Chrono.hxx +++ b/src/Chrono.hxx @@ -125,6 +125,10 @@ public: return SignedSongTime(rep(s) * 1000); } + static constexpr SignedSongTime FromS(unsigned s) { + return SignedSongTime(rep(s) * 1000); + } + static constexpr SignedSongTime FromS(float s) { return SignedSongTime(rep(s * 1000)); }