mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Remove obsolete timer functions and replace with std::chrono (#64)
Removed delayTicks(), delayMillis(), delaySeconds(), HAL_NO_WAIT, HAL_WAIT_FOREVER, niTimestamp32(), and niTimestamp64(). Replaced clock_gettime() and usleep() with std::chrono.
This commit is contained in:
committed by
Peter Johnson
parent
4af0bbddee
commit
fa8bb3fa91
@@ -7,8 +7,6 @@
|
||||
|
||||
#include "Timer.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "Utility.h"
|
||||
#include "simulation/simTime.h"
|
||||
|
||||
@@ -186,9 +184,3 @@ double Timer::GetFPGATimestamp() {
|
||||
* Not in a match.
|
||||
*/
|
||||
double Timer::GetMatchTime() { return Timer::GetFPGATimestamp(); }
|
||||
|
||||
// Internal function that reads the PPC timestamp counter.
|
||||
extern "C" {
|
||||
uint32_t niTimestamp32(void);
|
||||
uint64_t niTimestamp64(void);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user