blob: c53f1204c8c9a304bb2a15fbf100d850c2f0b9c0 [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001/*----------------------------------------------------------------------------*/
Austin Schuh1e69f942020-11-14 15:06:14 -08002/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
Brian Silverman8fce7482020-01-05 13:18:21 -08003/* Open Source Software - may be modified and shared by FRC teams. The code */
4/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
6/*----------------------------------------------------------------------------*/
7
8#pragma once
9
10#include <stdint.h>
11
Austin Schuh1e69f942020-11-14 15:06:14 -080012#include "hal/simulation/MockHooks.h"
Brian Silverman8fce7482020-01-05 13:18:21 -080013
14namespace hal {
15void RestartTiming();
16
17void PauseTiming();
18
19void ResumeTiming();
20
21bool IsTimingPaused();
22
23void StepTiming(uint64_t delta);
24
Austin Schuh1e69f942020-11-14 15:06:14 -080025uint64_t GetFPGATime();
Brian Silverman8fce7482020-01-05 13:18:21 -080026
27double GetFPGATimestamp();
28
29void SetProgramStarted();
30} // namespace hal