Formula Student Electronics & Software
The code for the embedded software
|
#include <teensy_clock.h>
Public Types | |
using | duration = std::chrono::duration< uint64_t, std::ratio< 1, F_CPU > > |
using | rep = duration::rep |
using | period = duration::period |
using | time_point = std::chrono::time_point< teensy_clock, duration > |
Static Public Member Functions | |
static time_point | now () |
static void | begin (bool sync=true) |
static void | syncToRTC () |
static std::time_t | to_time_t (const time_point &t) |
static time_point | from_time_t (std::time_t t) |
Static Public Attributes | |
static constexpr bool | is_steady = false |
Definition at line 8 of file teensy_clock.h.
using teensy_clock::duration = std::chrono::duration<uint64_t, std::ratio<1, F_CPU> > |
Definition at line 11 of file teensy_clock.h.
using teensy_clock::period = duration::period |
Definition at line 13 of file teensy_clock.h.
using teensy_clock::rep = duration::rep |
Definition at line 12 of file teensy_clock.h.
using teensy_clock::time_point = std::chrono::time_point<teensy_clock, duration> |
Definition at line 14 of file teensy_clock.h.
|
static |
Definition at line 16 of file teensy_clock.cpp.
|
inlinestatic |
|
static |
Definition at line 23 of file teensy_clock.cpp.
|
static |
Definition at line 10 of file teensy_clock.cpp.
Definition at line 16 of file teensy_clock.h.