78 double toSecondsDouble()
const;
79 double toMilliSecondsDouble()
const;
80 double toMicroSecondsDouble()
const;
82 std::string toString()
const;
96 std::string toStringFormated(
const std::string &pattern,
unsigned int bufferSize=32,
bool zeropadded =
false)
const;
105 return age().toString();
115 inline void showAge(
const std::string &title=
"")
const{
116 std::cout << title <<
":" << age().toMilliSecondsDouble() <<
"ms" << std::endl;
120 inline void printAge(
const std::string &title=
"")
const {
127 return Time(-m_usec);
154 return m_usec < rhs.
m_usec;
159 return m_usec <= rhs.
m_usec;
164 return m_usec > rhs.
m_usec;
169 return m_usec >= rhs.
m_usec;
174 return m_usec == rhs.
m_usec;
179 return m_usec != rhs.
m_usec;
262 m_usec = static_cast<value_type>(static_cast<double>(m_usec) * rhs);
269 t.
m_usec = static_cast<value_type>(static_cast<double>(m_usec) * rhs);
275 m_usec = static_cast<value_type>(static_cast<double>(m_usec) / rhs);
282 t.
m_usec = static_cast<value_type>(static_cast<double>(m_usec) / rhs);
bool operator>(const Time &rhs) const
Definition: Time.h:162
Time & operator/=(value_type rhs)
Definition: Time.h:247
void showAge(const std::string &title="") const
common function for simple benchmarking
Definition: Time.h:115
Time & operator-=(const Time &rhs)
Definition: Time.h:146
undocument this line if you encounter any issues!
Definition: Any.h:37
Time & operator+=(const Time &rhs)
Definition: Time.h:140
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
Time operator-() const
Definition: Time.h:125
ICL Time class (taken from the Ice lib)
Definition: Time.h:52
static Time microSeconds(value_type)
std::string getAgeString() const
returns string representation of the times age
Definition: Time.h:104
value_type m_usec
Definition: Time.h:292
bool operator<=(const Time &rhs) const
Definition: Time.h:157
Time age() const
Definition: Time.h:99
Time operator/(double rhs) const
Definition: Time.h:279
Time operator/(int rhs) const
Definition: Time.h:227
int64_t value_type
internal data type (64Bit integer)
Definition: Time.h:56
Time & operator/=(double rhs)
Definition: Time.h:273
FixedMatrix< T, V_COLS, M_ROWS_AND_COLS > & operator *=(FixedMatrix< T, V_COLS, M_ROWS_AND_COLS > &v, const FixedMatrix< T, M_ROWS_AND_COLS, M_ROWS_AND_COLS > &m)
Matrix multiplication (inplace)
Definition: FixedMatrix.h:959
Time operator/(const Time &rhs) const
Definition: Time.h:201
ICLUtils_API std::ostream & operator<<(std::ostream &s, const ConfigFile &cf)
Default ostream operator to put a ConfigFile into a stream.
ICLUtils_API std::istream & operator>>(std::istream &s, Point &p)
istream operator
Time & operator/=(int rhs)
Definition: Time.h:221
ICLQt_API ImgQ operator *(const ImgQ &a, const ImgQ &b)
multiplies two images pixel-wise
bool operator!=(const Time &rhs) const
Definition: Time.h:177
bool operator>=(const Time &rhs) const
Definition: Time.h:167
void printAge(const std::string &title="") const
alternative function name for showAge
Definition: Time.h:120
Time operator/(value_type rhs) const
Definition: Time.h:253
Time & operator/=(const Time &rhs)
Definition: Time.h:195
Time operator+(const Time &rhs) const
Definition: Time.h:135
bool operator<(const Time &rhs) const
Definition: Time.h:152
bool operator==(const Time &rhs) const
Definition: Time.h:172
Time operator-(const Time &rhs) const
Definition: Time.h:130