Chrono: add method SignedSongTime::Negative()
This commit is contained in:
parent
f02998b106
commit
ad64bab5b2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user