mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-23 04:04:54 +08:00
Add a bunch of clarifying comments to those timespec functions which are intended for duration timespecs.
This commit is contained in:
parent
b01b47b301
commit
452dd3e678
@ -39,7 +39,7 @@
|
|||||||
/*! Smooth over platform variances in getting an accurate timespec
|
/*! Smooth over platform variances in getting an accurate timespec
|
||||||
* representing the present moment. */
|
* representing the present moment. */
|
||||||
static inline struct timespec
|
static inline struct timespec
|
||||||
get_time_now ()
|
timespec_now ()
|
||||||
{
|
{
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
# ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time
|
# ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user