diff options
author | Max Kellermann <max@duempel.org> | 2014-08-29 12:34:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-29 12:50:41 +0200 |
commit | 9fcaff749f2325465feb423aaeeece1bcefa8c5f (patch) | |
tree | 6e8c538dc59262bae1ac45202b81a8d5432f1d3e /src | |
parent | 3ac1475262c2ef8f2a76aac371daac2d01bc2383 (diff) | |
download | mpd-9fcaff749f2325465feb423aaeeece1bcefa8c5f.tar.gz mpd-9fcaff749f2325465feb423aaeeece1bcefa8c5f.tar.xz mpd-9fcaff749f2325465feb423aaeeece1bcefa8c5f.zip |
Chrono: add SignedSongTime::FromS(unsigned)
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)); } |