This site has been permanently archived. The content on this site was last updated in 2019.
gvr_clock_time_point
#include <gvr_types.h>
A monotonic system time representation.
Summary
On Android, this is equivalent to System.nanoTime(), or clock_gettime(CLOCK_MONOTONIC). If there is any doubt about how to get the current time for the current platform, simply use gvr_get_time_point_now().
Public attributes
monotonic_system_time_nanos
int64_t gvr_clock_time_point::monotonic_system_time_nanos
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["`gvr_clock_time_point` represents a monotonic system time, similar to `System.nanoTime()` on Android or `clock_gettime(CLOCK_MONOTONIC)`."],["Developers should use `gvr_get_time_point_now()` to obtain the current time on any platform."],["It includes a public attribute `monotonic_system_time_nanos` of type `int64_t` to store the time value."]]],["`gvr_clock_time_point` represents a monotonic system time, similar to Android's `System.nanoTime()` or `clock_gettime(CLOCK_MONOTONIC)`. To obtain the current time, use `gvr_get_time_point_now()`. It has one public attribute `monotonic_system_time_nanos`, a 64-bit integer representing the time in nanoseconds. This value provides a platform-agnostic way to get the system's monotonic time.\n"]]