Util

Util — Utilities available for use by consumers of the event recorder API.

Functions

Types and Values

Includes

#include <eosmetrics/eosmetrics.h>

Description

Refer to method documentation for more details.

Functions

emtr_util_get_current_time ()

gboolean
emtr_util_get_current_time (clockid_t clock_id,
                            gint64 *current_time);

Populates current_time with the current time according to clock_id . Guarantees that the difference between any two successfully fetched times fits in a gint64.

[skip]

Parameters

clock_id

the clock from which to read the current time.

[in]

current_time

a space in which to store the current time.

[out]

Returns

TRUE if the current time was successfully read and FALSE otherwise.

Since: 0.2

Types and Values

EMTR_MAJOR_VERSION

#define EMTR_MAJOR_VERSION (0)

Major version number (API level) of the Endless Metrics library. For example, this is 0 for version 0.6.1.

Since: 0.6


EMTR_MICRO_VERSION

#define EMTR_MICRO_VERSION (0)

Micro version number of the Endless Metrics library. For example, this is 1 for version 0.6.1.

Since: 0.6


EMTR_MINOR_VERSION

#define EMTR_MINOR_VERSION (5)

Minor version number of the Endless Metrics library. For example, this is 6 for version 0.6.1. An even number indicates a stable release, while an odd number is used for development snapshots.

Since: 0.6