Function utils::add_ns#

Function Documentation#

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

Add a duration to a timespec.

Parameters
  • clock[inout] The timespec to add the duration.

  • ns[in] The duration to add 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.