Chrono: add method SignedSongTime::Negative()
This commit is contained in:
@@ -106,6 +106,13 @@ public:
|
|||||||
return SignedSongTime(Base::zero());
|
return SignedSongTime(Base::zero());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate a negative value.
|
||||||
|
*/
|
||||||
|
static constexpr SignedSongTime Negative() {
|
||||||
|
return SignedSongTime(-1);
|
||||||
|
}
|
||||||
|
|
||||||
static constexpr SignedSongTime FromS(int s) {
|
static constexpr SignedSongTime FromS(int s) {
|
||||||
return SignedSongTime(rep(s) * 1000);
|
return SignedSongTime(rep(s) * 1000);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user