CTRE Phoenix 6 C++ 24.50.0-alpha-2
TimeUtil.hpp File Reference
#include <thread>
#include <chrono>

Go to the source code of this file.

Namespaces

namespace  ctre
 Represents the state of one swerve module.
 
namespace  ctre::phoenix
 
namespace  ctre::phoenix::platform
 

Functions

static void ctre::phoenix::platform::SleepUs (int timeUs)
 
std::chrono::steady_clock::duration ctre::phoenix::platform::CurrentTimeRaw ()
 The raw current time source. More...
 
template<typename DURATION = std::chrono::microseconds>
static auto ctre::phoenix::platform::CurrentTime ()
 Returns the current time of the system, converted to the given duration. More...
 
template<typename DURATION = std::chrono::microseconds>
static auto ctre::phoenix::platform::SystemTime ()
 Returns the monotonic time of the system, converted to the given duration. More...