Function utils::set_ns#

Function Documentation#

void utils::set_ns(timespec &clock, uint64_t ns)#

Set a timespec to the specified date.

Parameters
  • clock[out] The timespec to set.

  • ns[in] The date to set in the timespec in nano seconds.

Corail is free software: you can redistribute it and/or modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.