Zth (libzth)
Loading...
Searching...
No Matches
time

Functions

void zth_now (struct timespec *ts)
 Returns the current timestamp.
 
void zth_now2 (uint64_t *s, uint32_t *ns)
 Returns the current timestamp.
 

Detailed Description

Function Documentation

◆ zth_now()

void zth_now ( struct timespec *  ts)

Returns the current timestamp.

This is a monotonic clock, with unspecified start point. It is based on clock_gettime(CLOCK_MONOTONIC,...) .

This is a C-wrapper for zth::now().

Definition at line 822 of file time.h.

◆ zth_now2()

void zth_now2 ( uint64_t *  s,
uint32_t *  ns 
)

Returns the current timestamp.

This is a monotonic clock, with unspecified start point. It is based on clock_gettime(CLOCK_MONOTONIC,...) .

This is a C-wrapper for zth::now(), with fixed typed s/ns fields.

Definition at line 833 of file time.h.