mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpiutil] Add noexcept to timestamp static functions (#2994)
This silences a clang-tidy warning.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#endif
|
||||
|
||||
// offset in microseconds
|
||||
static uint64_t zerotime() {
|
||||
static uint64_t zerotime() noexcept {
|
||||
#ifdef _WIN32
|
||||
FILETIME ft;
|
||||
uint64_t tmpres = 0;
|
||||
@@ -40,7 +40,7 @@ static uint64_t zerotime() {
|
||||
#endif
|
||||
}
|
||||
|
||||
static uint64_t timestamp() {
|
||||
static uint64_t timestamp() noexcept {
|
||||
#ifdef _WIN32
|
||||
LARGE_INTEGER li;
|
||||
QueryPerformanceCounter(&li);
|
||||
|
||||
Reference in New Issue
Block a user