30 #ifndef ICL_CORE_TIME_BASE_H_INCLUDED 31 #define ICL_CORE_TIME_BASE_H_INCLUDED 37 #ifdef _IC_BUILDER_HAS_TIME_H_ 40 #ifdef _IC_BUILDER_HAS_SYS_TIME_H_ 41 # include <sys/time.h> 44 #ifdef _SYSTEM_DARWIN_ 45 # include <mach/clock_types.h> 48 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 71 bool operator != (
const TimeBase& other)
const;
82 bool operator < (
const TimeBase& other)
const;
87 bool operator > (
const TimeBase& other)
const;
93 bool operator <= (
const TimeBase& other)
const;
99 bool operator >= (
const TimeBase& other)
const;
104 void normalizeTime();
117 return secs / 3600 % 24;
125 return (secs % 3600) / 60;
133 return (secs % 3600) % 60;
141 return nsecs / 1000000;
177 struct timespec systemTimespec() const;
179 #ifdef _SYSTEM_DARWIN_ 180 mach_timespec_t machTimespec()
const;
185 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 258 #ifdef _SYSTEM_DARWIN_ 274 TimeBase(
const struct timespec& time);
276 void fromTimespec(
const struct timespec& time);
279 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
int32_t nanoSeconds() const
#define ICL_CORE_VC_DEPRECATE_STYLE
int32_t milliSeconds() const
int64_t tbSec() const
Returns the second part of this time.
int32_t tbNSec() const
Returns the nanosecond part of this time.
int64_t days() const
Use this function if you want to express the time in days.
Contains macros to deprecate classes, types, functions and variables.
#define ICL_CORE_IMPORT_EXPORT
Contains global functions, encapsulated into the icl_core::os namespace.
bool operator==(const ThreadId &left, const ThreadId &right)
int32_t microSeconds() const
Contains import/export definitions for the Win32 plattform.
Contains Interface base classes and base types.
#define ICL_CORE_GCC_DEPRECATE_STYLE