Skip to content

Commit

Permalink
remove_ambiguous_get_time
Browse files Browse the repository at this point in the history
  • Loading branch information
DFritzsche committed Jun 21, 2017
1 parent efa4b9e commit 26831a8
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/rofl/common/ctimespec.hpp
Expand Up @@ -203,28 +203,6 @@ class ctimespec {
*/
const struct timespec &get_tspec() const { return tspec; };

/**
*
*/
ctimespec &get_time() {
// get current time
if (clock_gettime(clk_id.get_clkid(), &tspec) < 0) {
switch (errno) {
case EFAULT: {
throw eTimeSpecSysCall("ctimespec::now() invalid struct timespec");
} break;
case EINVAL: {
throw eTimeSpecSysCall("ctimespec::now() clockid_t is invalid");
} break;
default: {
throw eTimeSpecSysCall("ctimespec::now() unknown internal error on "
"syscall clock_gettime()");
};
}
}
return *this;
};

/**
*
*/
Expand Down

0 comments on commit 26831a8

Please sign in to comment.