SDK Version 2.0.1
AnsuR Technologies ASMIRA SDK
Loading...
Searching...
No Matches
Utilities

Functions

TimePoint asdk::TimeNow ()
 Current high resolution clock reading.
long long asdk::TimeSpent (const TimePoint &timeStart)
 Milliseconds elapsed since a TimeNow() reading.
TimePointSteady asdk::TimeNowSteady ()
 Current steady clock reading, unaffected by clock adjustments.
long long asdk::TimeSpentSteady (const TimePointSteady &time)
 Milliseconds elapsed since a TimeNowSteady() reading.

Detailed Description

Small helpers the SDK exposes for convenience.

Function Documentation

◆ TimeNow()

TimePoint asdk::TimeNow ( )
inline

Current high resolution clock reading.

Definition at line 755 of file asmirasdk.h.

References TimeNow().

Referenced by TimeNow(), and TimeSpent().

◆ TimeSpent()

long long asdk::TimeSpent ( const TimePoint & timeStart)
inline

Milliseconds elapsed since a TimeNow() reading.

Parameters
timeStartReading to measure from.

Definition at line 761 of file asmirasdk.h.

References TimeNow(), and TimeSpent().

Referenced by TimeSpent().

◆ TimeNowSteady()

TimePointSteady asdk::TimeNowSteady ( )
inline

Current steady clock reading, unaffected by clock adjustments.

Examples
example_basic.cpp.

Definition at line 769 of file asmirasdk.h.

References TimeNowSteady().

Referenced by TimeNowSteady(), and TimeSpentSteady().

◆ TimeSpentSteady()

long long asdk::TimeSpentSteady ( const TimePointSteady & time)
inline

Milliseconds elapsed since a TimeNowSteady() reading.

Parameters
timeReading to measure from.
Examples
example_basic.cpp.

Definition at line 776 of file asmirasdk.h.

References TimeNowSteady(), and TimeSpentSteady().

Referenced by TimeSpentSteady().