Check if duration is less than another
bool operator <(Duration other) => inMilliseconds < other.inMilliseconds;