diff options
Diffstat (limited to '')
-rw-r--r-- | src/Chrono.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
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)); } |