mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 14:09:26 +00:00
Separated out catch_platform.h
This commit is contained in:
parent
46118714b1
commit
638cf9feb4
5 changed files with 29 additions and 10 deletions
|
@ -7,13 +7,14 @@
|
|||
*/
|
||||
|
||||
#include "catch_timer.h"
|
||||
#include "catch_platform.h"
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wc++11-long-long"
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef CATCH_PLATFORM_WINDOWS
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
|
@ -22,7 +23,7 @@
|
|||
namespace Catch {
|
||||
|
||||
namespace {
|
||||
#ifdef WIN32
|
||||
#ifdef CATCH_PLATFORM_WINDOWS
|
||||
uint64_t getCurrentTicks() {
|
||||
static uint64_t hz=0, hzo=0;
|
||||
if (!hz) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue