WPILibC++
2020.3.2
timestamp.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
3
/* 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
#ifndef WPIUTIL_WPI_TIMESTAMP_H_
9
#define WPIUTIL_WPI_TIMESTAMP_H_
10
11
#include <stdint.h>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
22
uint64_t WPI_NowDefault(
void
);
23
30
void
WPI_SetNowImpl(uint64_t (*func)(
void
));
31
37
uint64_t WPI_Now(
void
);
38
39
#ifdef __cplusplus
40
}
// extern "C"
41
#endif
42
43
#ifdef __cplusplus
44
namespace
wpi
{
45
51
uint64_t NowDefault(
void
);
52
59
void
SetNowImpl(uint64_t (*func)());
60
66
uint64_t
Now
(
void
);
67
68
}
// namespace wpi
69
#endif
70
71
#endif // WPIUTIL_WPI_TIMESTAMP_H_
nt::Now
uint64_t Now()
Returns monotonic current time in 1 us increments.
wpi
WPILib C++ utilities (wpiutil) namespace.
Definition:
EventLoopRunner.h:17
wpiutil
src
main
native
include
wpi
timestamp.h
Generated on Fri Feb 21 2020 08:50:37 for WPILibC++ by
1.8.16