bson_get_monotonic_time(3)

System Clock

Section 3 libbson-doc bookworm source

Description

BSON_GET_MONOTONIC_TIME

NAME

bson_get_monotonic_time - System Clock

BSON Clock Abstraction

SYNOPSIS

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

DESCRIPTION

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.

AUTHOR

MongoDB, Inc

COPYRIGHT

2017-present, MongoDB, Inc