version 4.0.0_alpha
in almost all methods removed timeouts in milliseconds, replaced to PISystemTime PITimer rewrite, remove internal impl, now only thread implementation, API similar to PIThread PITimer API no longer pass void* PIPeer, PIConnection improved stability on reinit and exit PISystemTime new methods pisd now exit without hanging
This commit is contained in:
@@ -194,6 +194,18 @@ public:
|
||||
//! \~russian Возвращает нулевое ли время
|
||||
bool isNull() const { return (seconds == 0) && (nanoseconds == 0); }
|
||||
|
||||
//! \~english Returns if time is not null
|
||||
//! \~russian Возвращает не нулевое ли время
|
||||
bool isNotNull() const { return !isNull(); }
|
||||
|
||||
//! \~english Returns if time is greater than 0
|
||||
//! \~russian Возвращает больше ли 0 время
|
||||
bool isPositive() const { return (seconds >= 0) && (nanoseconds >= 0); }
|
||||
|
||||
//! \~english Returns if time is lesser than 0
|
||||
//! \~russian Возвращает меньше ли 0 время
|
||||
bool isNegative() const { return (seconds < 0) || (nanoseconds < 0); }
|
||||
|
||||
//! \~english Returns time value in seconds
|
||||
//! \~russian Возвращает значение времени в секундах
|
||||
double toSeconds() const { return double(seconds) + nanoseconds / 1.e+9; }
|
||||
|
||||
Reference in New Issue
Block a user