mbgtools-lx  4.2.8
NANO_TIME_64 Struct Reference

A timestamp with nanosecond resolution, but 64 bit size. More...

#include <words.h>

Data Fields

int64_t secs
 [seconds], usually since 1970-01-01 00:00:00 More...
 
int64_t nano_secs
 [nanoseconds] More...
 

Detailed Description

A timestamp with nanosecond resolution, but 64 bit size.

Note
If the structure is to represent a negative value then both the fields nano_secs and secs have to be set to the negative values. Otherwise the sign of the represented number was ambiguous if either of the fields was accidentally 0, and only the other field was not 0. The macro _nano_time_64_negative should always be used to determine if the sign of the represented value is negative, or not.
See also
_nano_time_64_negative
_nano_time_64_zero
NANO_TIME

Definition at line 621 of file words.h.

Field Documentation

◆ nano_secs

◆ secs


The documentation for this struct was generated from the following file: