16 #include "rofl/common/logging.h"
17 #include "rofl/common/croflexception.h"
43 long tv_sec,
long tv_nsec);
76 set_timespec() {
return ts; };
81 const struct timespec&
82 get_timespec()
const {
return ts; };
158 operator<< (std::ostream& os,
const ctimespec& timespec) {
160 os <<
"sec:" << (
long int)timespec.ts.tv_sec <<
" ";
161 os <<
"nsec:" << (
long int)timespec.ts.tv_nsec <<
" ";
162 os <<
">" << std::endl;
168 std::stringstream ss;
169 ss << (
unsigned long int)ts.tv_sec <<
"s " << (
unsigned long int)ts.tv_nsec <<
"ns ";
175 static const long CC_TIMER_ONE_SECOND_S = 1;
176 static const long CC_TIMER_ONE_SECOND_NS = 1000000000;
Time specification used by class rofl::ctimer object.
Definition: ctimespec.h:25