This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003egvr_clock_time_point\u003c/code\u003e represents a monotonic system time, similar to \u003ccode\u003eSystem.nanoTime()\u003c/code\u003e on Android or \u003ccode\u003eclock_gettime(CLOCK_MONOTONIC)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should use \u003ccode\u003egvr_get_time_point_now()\u003c/code\u003e to obtain the current time on any platform.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a public attribute \u003ccode\u003emonotonic_system_time_nanos\u003c/code\u003e of type \u003ccode\u003eint64_t\u003c/code\u003e to store the time value.\u003c/p\u003e\n"]]],["`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"],null,["gvr_clock_time_point `#include \u003cgvr_types.h\u003e`\n\nA *monotonic system time* representation.\n\nSummary\n\nOn 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()](/vr/reference/ios-ndk/group/headtracking#group___headtracking_1ga3ce252705c9932b10107838952594a59).\n\n| Public attributes ||\n|--------------------------------------------------------------------------------------------------|-----------|\n| [monotonic_system_time_nanos](#structgvr__clock__time__point_1afd7814d1106bb59c5365f45d2e0036bc) | `int64_t` |\n\nPublic attributes \n\nmonotonic_system_time_nanos \n\n```scdoc\nint64_t gvr_clock_time_point::monotonic_system_time_nanos\n```"]]