Mbed OS Reference
Loading...
Searching...
No Matches
Clock Struct Reference

A C++11 chrono TrivialClock for the kernel millisecond tick count. More...

#include <Kernel.h>

Static Public Member Functions

static void lock ()
 Lock the clock to ensure it stays running; dummy for API compatibility with HighResClock. More...
 
static void unlock ()
 Unlock the clock, allowing it to stop during power saving; dummy for API compatibility with HighResClock. More...
 

Detailed Description

A C++11 chrono TrivialClock for the kernel millisecond tick count.

Note
To fit better into the chrono framework, Kernel::Clock uses std::chrono::milliseconds as its representation, which makes it signed and at least 45 bits (so it will be int64_t or equivalent).

Definition at line 73 of file Kernel.h.

Member Function Documentation

◆ lock()

static void lock ( )
static

Lock the clock to ensure it stays running; dummy for API compatibility with HighResClock.

Definition at line 98 of file Kernel.h.

◆ unlock()

static void unlock ( )
static

Unlock the clock, allowing it to stop during power saving; dummy for API compatibility with HighResClock.

Definition at line 103 of file Kernel.h.