WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::hal::fpga_clock Class Reference

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

#include <wpi/hal/cpp/fpga_clock.hpp>

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 wpi::hal::fpga_clock::duration = std::chrono::microseconds

◆ period

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

◆ rep

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

◆ time_point

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

Member Function Documentation

◆ epoch()

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

◆ now()

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

◆ zero()

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

Member Data Documentation

◆ is_steady

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

◆ min_time

const time_point wpi::hal::fpga_clock::min_time
static

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