30.11.2013 - New PICollection namespace, Android support, my own PIVector implementation
This commit is contained in:
17
pitimer.h
17
pitimer.h
@@ -134,6 +134,9 @@ private:
|
||||
|
||||
};
|
||||
|
||||
//! \relatesalso PICout \relatesalso PIByteArray \brief Output operator to PICout
|
||||
inline PICout operator <<(PICout s, const PISystemTime & v) {s.setControl(0, true); s.space(); s << "(" << v.seconds << " s, " << v.nanoseconds << " ns)"; s.restoreControl(); return s;}
|
||||
|
||||
//! \relatesalso PISystemTime \relatesalso PIByteArray \brief Output operator to PIByteArray
|
||||
inline PIByteArray & operator <<(PIByteArray & s, const PISystemTime & v) {s << v.seconds << v.nanoseconds; return s;}
|
||||
|
||||
@@ -200,19 +203,7 @@ inline bool operator !=(const PIDateTime & t0, const PIDateTime & t1) {return !(
|
||||
inline bool operator <=(const PIDateTime & t0, const PIDateTime & t1) {return !(t0 > t1);}
|
||||
inline bool operator >=(const PIDateTime & t0, const PIDateTime & t1) {return !(t0 < t1);}
|
||||
|
||||
/// events:
|
||||
/// void timeout(void * data, int delimiter)
|
||||
///
|
||||
/// handlers:
|
||||
/// void start(double msecs)
|
||||
/// void deferredStart(double interval_msecs, double delay_msecs)
|
||||
/// void deferredStart(double interval_msecs, const PIDateTime & start_datetime)
|
||||
/// void stop()
|
||||
/// bool waitForFinish(int timeout_msecs = -1)
|
||||
/// void reset()
|
||||
/// void clearDelimiters()
|
||||
/// void lock()
|
||||
/// void unlock()
|
||||
|
||||
class PIP_EXPORT PITimer
|
||||
#ifndef PIP_TIMER_RT
|
||||
: public PIThread
|
||||
|
||||
Reference in New Issue
Block a user