From 62b8a36ce98e53a5dba63e250b376973e9f098b1 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 20 Jun 2020 23:47:55 -0700 Subject: [PATCH] [sim] Wrap timing functions in C++ SimHooks (#2540) These are present in Java but were missed for C++. --- hal/src/main/native/include/simulation/SimHooks.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hal/src/main/native/include/simulation/SimHooks.h b/hal/src/main/native/include/simulation/SimHooks.h index 537cef3ca9..8acbf4d3ae 100644 --- a/hal/src/main/native/include/simulation/SimHooks.h +++ b/hal/src/main/native/include/simulation/SimHooks.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -20,5 +20,13 @@ bool GetProgramStarted() { return HALSIM_GetProgramStarted(); } void RestartTiming() { HALSIM_RestartTiming(); } +void PauseTiming() { HALSIM_PauseTiming(); } + +void ResumeTiming() { HALSIM_ResumeTiming(); } + +bool IsTimingPaused() { return HALSIM_IsTimingPaused(); } + +void StepTiming(uint64_t delta) { HALSIM_StepTiming(delta); } + } // namespace sim } // namespace frc