Commit 9fcaff74 authored by Max Kellermann's avatar Max Kellermann

Chrono: add SignedSongTime::FromS(unsigned)

parent 3ac14752
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment