DOKK / manpages / debian 12 / libbson-doc / bson_get_monotonic_time.3.en
BSON_GET_MONOTONIC_TIME(3) libbson BSON_GET_MONOTONIC_TIME(3)

bson_get_monotonic_time - System Clock

BSON Clock Abstraction

int64_t
bson_get_monotonic_time (void);
int
bson_gettimeofday (struct timeval *tv);


The clock abstraction in Libbson provides a cross-platform way to handle timeouts within the BSON library. It abstracts the differences in implementations of gettimeofday() as well as providing a monotonic (incrementing only) clock in microseconds.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1