libnx  v4.2.0
Functions
counter.h File Reference

AArch64 system counter-timer. More...

#include "../types.h"

Go to the source code of this file.

Functions

static u64 armGetSystemTick (void)
 Gets the current system tick. More...
 
static u64 armGetSystemTickFreq (void)
 Gets the system counter-timer frequency. More...
 
static u64 armNsToTicks (u64 ns)
 Converts from nanoseconds to CPU ticks unit. More...
 
static u64 armTicksToNs (u64 tick)
 Converts from CPU ticks unit to nanoseconds. More...
 

Detailed Description

AArch64 system counter-timer.

Author
fincs

Function Documentation

◆ armGetSystemTick()

static u64 armGetSystemTick ( void  )
inlinestatic

Gets the current system tick.

Returns
The current system tick.

◆ armGetSystemTickFreq()

static u64 armGetSystemTickFreq ( void  )
inlinestatic

Gets the system counter-timer frequency.

Returns
The system counter-timer frequency, in Hz.

◆ armNsToTicks()

static u64 armNsToTicks ( u64  ns)
inlinestatic

Converts from nanoseconds to CPU ticks unit.

Parameters
nsTime in nanoseconds.
Returns
Time in CPU ticks.

◆ armTicksToNs()

static u64 armTicksToNs ( u64  tick)
inlinestatic

Converts from CPU ticks unit to nanoseconds.

Parameters
tickTime in ticks.
Returns
Time in nanoseconds.