diff options
Diffstat (limited to 'src/Chrono.hxx')
-rw-r--r-- | src/Chrono.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Chrono.hxx b/src/Chrono.hxx index de5122fd0..db7605726 100644 --- a/src/Chrono.hxx +++ b/src/Chrono.hxx @@ -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); } |