WPILibC++ 2023.4.3
hal::fpga_clock Class Reference

A std::chrono compatible wrapper around the FPGA Timer. More...

#include <hal/cpp/fpga_clock.h>

Public Types

using rep = std::chrono::microseconds::rep
 
using period = std::chrono::microseconds::period
 
using duration = std::chrono::microseconds
 
using time_point = std::chrono::time_point< fpga_clock >
 

Static Public Member Functions

static fpga_clock::time_point now () noexcept
 
static fpga_clock::time_point epoch () noexcept
 
static fpga_clock::duration zero () noexcept
 

Static Public Attributes

static constexpr bool is_steady = true
 
static const time_point min_time
 

Detailed Description

A std::chrono compatible wrapper around the FPGA Timer.

Member Typedef Documentation

◆ duration

using hal::fpga_clock::duration = std::chrono::microseconds

◆ period

using hal::fpga_clock::period = std::chrono::microseconds::period

◆ rep

using hal::fpga_clock::rep = std::chrono::microseconds::rep

◆ time_point

using hal::fpga_clock::time_point = std::chrono::time_point<fpga_clock>

Member Function Documentation

◆ epoch()

static fpga_clock::time_point hal::fpga_clock::epoch ( )
inlinestaticnoexcept

◆ now()

static fpga_clock::time_point hal::fpga_clock::now ( )
staticnoexcept

◆ zero()

static fpga_clock::duration hal::fpga_clock::zero ( )
inlinestaticnoexcept

Member Data Documentation

◆ is_steady

constexpr bool hal::fpga_clock::is_steady = true
staticconstexpr

◆ min_time

const time_point hal::fpga_clock::min_time
static

The documentation for this class was generated from the following file: