From 9fcaff749f2325465feb423aaeeece1bcefa8c5f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 12:34:31 +0200 Subject: Chrono: add SignedSongTime::FromS(unsigned) --- src/Chrono.hxx | 4 ++++ 1 file changed, 4 insertions(+) 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)); } -- cgit v1.2.3