CTRE Phoenix Pro C++ 23.0.12
Utils.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
10
11namespace ctre {
12namespace phoenixpro {
13
14 /**
15 * \brief Get the current timestamp in seconds.
16 *
17 * \details This will return the current time in seconds, this is
18 * the same time that is used in Timestamp.
19 *
20 * \returns Current time in seconds.
21 */
23 /**
24 * \brief Get whether the program is running in simulation.
25 *
26 * \returns `true` if in simulation
27 */
29
30}
31}
#define CTREXPORT
Definition: export.h:14
CTREXPORT double GetCurrentTimeSeconds()
Get the current timestamp in seconds.
CTREXPORT bool IsSimulation()
Get whether the program is running in simulation.
Definition: string_util.hpp:14