CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
ktime.h File Reference

A finer clock for timings: microseconds, from the same tick. More...

#include <stdint.h>

Go to the source code of this file.

Functions

uint64_t ktime_get_us (void)
 Return the wall clock in microseconds since boot.

Detailed Description

A finer clock for timings: microseconds, from the same tick.

Function Documentation

◆ ktime_get_us()

uint64_t ktime_get_us ( void )

Return the wall clock in microseconds since boot.

Converts the difference between the current cycle counter and its value at initialization to microseconds.

Returns
Microseconds since boot.