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
9
#include "
ctre/phoenix/export.h
"
10
11
namespace
ctre
{
12
namespace
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
*/
22
CTREXPORT
double
GetCurrentTimeSeconds
();
23
/**
24
* \brief Get whether the program is running in simulation.
25
*
26
* \returns `true` if in simulation
27
*/
28
CTREXPORT
bool
IsSimulation
();
29
30
}
31
}
export.h
CTREXPORT
#define CTREXPORT
Definition:
export.h:14
ctre::phoenixpro::GetCurrentTimeSeconds
CTREXPORT double GetCurrentTimeSeconds()
Get the current timestamp in seconds.
ctre::phoenixpro::IsSimulation
CTREXPORT bool IsSimulation()
Get whether the program is running in simulation.
ctre
Definition:
string_util.hpp:14
ctre
phoenixpro
Utils.hpp
Generated on Wed Apr 12 2023 22:31:34 for CTRE Phoenix Pro C++ by
1.9.4