[wpiutil] Add noexcept to timestamp static functions (#2994)

This silences a clang-tidy warning.
This commit is contained in:
Peter Johnson
2020-12-28 17:12:51 -08:00
committed by GitHub
parent 5d976b6e18
commit b8413ddd5b

View File

@@ -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);