Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions headers/ztimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

#include "common.h"

#ifdef _WIN32
#define NOMINMAX
#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>

namespace FastPForLib {

//
Expand All @@ -18,11 +23,6 @@ namespace FastPForLib {
// Implementation has been taken from a post on stackoverflow and adapted here
// http://stackoverflow.com/questions/13263277/difference-between-stdsystem-clock-and-stdsteady-clock
//
#ifdef _WIN32
#define NOMINMAX
#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>

struct qpc_clock {
typedef std::chrono::nanoseconds duration;
typedef duration::rep rep;
Expand Down