CTRE Phoenix 6 C++
24.3.0
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
phoenix6 {
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::phoenix6::GetCurrentTimeSeconds
CTREXPORT double GetCurrentTimeSeconds()
Get the current timestamp in seconds.
ctre::phoenix6::IsSimulation
CTREXPORT bool IsSimulation()
Get whether the program is running in simulation.
ctre
Definition:
string_util.hpp:15
ctre
phoenix6
Utils.hpp
Generated on Tue Apr 30 2024 23:46:26 for CTRE Phoenix 6 C++ by
1.9.4