mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1686405 - Fix tier-3 build. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D109492
This commit is contained in:
parent
18759be2c0
commit
030f28a6fb
@ -43,9 +43,7 @@ Maybe<uint64_t> NowIncludingSuspendMs() {
|
||||
return Some(clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW) / kNSperMS);
|
||||
}
|
||||
|
||||
#endif // macOS
|
||||
|
||||
#if defined(XP_WIN)
|
||||
#elif defined(XP_WIN)
|
||||
|
||||
// Number of hundreds of nanoseconds in a millisecond
|
||||
static constexpr uint64_t kHNSperMS = 10000;
|
||||
@ -77,9 +75,8 @@ Maybe<uint64_t> NowIncludingSuspendMs() {
|
||||
pQueryInterruptTime(&interrupt_time);
|
||||
return Some(interrupt_time / kHNSperMS);
|
||||
}
|
||||
#endif // XP_WIN
|
||||
|
||||
#if defined(XP_LINUX) // including Android
|
||||
#elif defined(XP_LINUX) // including Android
|
||||
# include <time.h>
|
||||
|
||||
// Number of nanoseconds in a millisecond.
|
||||
@ -111,7 +108,12 @@ Maybe<uint64_t> NowIncludingSuspendMs() {
|
||||
# endif
|
||||
}
|
||||
|
||||
#endif // XP_LINUX
|
||||
#else // catch all
|
||||
|
||||
Maybe<uint64_t> NowExcludingSuspendMs() { return Nothing(); }
|
||||
Maybe<uint64_t> NowIncludingSuspendMs() { return Nothing(); }
|
||||
|
||||
#endif
|
||||
|
||||
}; // anonymous namespace
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user