bson_clock(3)

bson_clock3

Bson clock abstraction

Usage

int64_t bson_get_monotonic_time (void);

int bson_gettimeofday (struct timeval *tv,

void *tz);

struct timezone *tz);

Overview

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(3) as well as providing a monotonic (incrementing only) clock in microseconds.

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

From libbson-doc 1.4.2-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.