mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Performed cleanup of Timer's free functions (#776)
* GetClock() is now officially deprecated since its comment already informally did so and the function just forwards to Timer::GetFPGATimestamp(). * The declaration of GetPPCTimestamp() is missing a definition and has been removed. * std::this_thread::sleep_for() returns immediately when given a negative duration, so the check for that was removed from Wait().
This commit is contained in:
committed by
Peter Johnson
parent
dfc0656e5c
commit
26a36779a6
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <support/deprecated.h>
|
||||
#include <support/mutex.h>
|
||||
|
||||
#include "Base.h"
|
||||
@@ -16,6 +17,7 @@ namespace frc {
|
||||
typedef void (*TimerInterruptHandler)(void* param);
|
||||
|
||||
void Wait(double seconds);
|
||||
WPI_DEPRECATED("Use Timer::GetFPGATimestamp() instead.")
|
||||
double GetClock();
|
||||
double GetTime();
|
||||
|
||||
@@ -43,7 +45,6 @@ class Timer {
|
||||
bool HasPeriodPassed(double period);
|
||||
|
||||
static double GetFPGATimestamp();
|
||||
static double GetPPCTimestamp();
|
||||
static double GetMatchTime();
|
||||
|
||||
// The time, in seconds, at which the 32-bit FPGA timestamp rolls over to 0
|
||||
|
||||
Reference in New Issue
Block a user