Louvre  v2.13.0-1
C++ library for Wayland compositors
Static Public Member Functions | List of all members
LTime Class Reference

Time utilities. More...

Static Public Member Functions

static UInt32 nextSerial () noexcept
 Serial. More...
 
static UInt32 ms () noexcept
 Milliseconds. More...
 
static UInt32 us () noexcept
 Microseconds. More...
 
static timespec ns () noexcept
 Nanoseconds. More...
 

Detailed Description

Time utilities.

Member Function Documentation

◆ nextSerial()

static UInt32 nextSerial ( )
inlinestaticnoexcept

Serial.

This method returns a new positive integer number each time it is called, incrementally.

◆ ms()

UInt32 ms ( )
staticnoexcept

Milliseconds.

Monotonic time with a granularity of milliseconds and an undefined base.

◆ us()

UInt32 us ( )
staticnoexcept

Microseconds.

Monotonic time with a granularity of microseconds and an undefined base.

◆ ns()

timespec ns ( )
staticnoexcept

Nanoseconds.

Monotonic time with nanosecond granularity and undefined base.