Commit ad64bab5 authored by Max Kellermann's avatar Max Kellermann

Chrono: add method SignedSongTime::Negative()

parent f02998b1
......@@ -106,6 +106,13 @@ public:
return SignedSongTime(Base::zero());
}
/**
* Generate a negative value.
*/
static constexpr SignedSongTime Negative() {
return SignedSongTime(-1);
}
static constexpr SignedSongTime FromS(int 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