mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-02-07 19:34:18 +08:00
Update main.c
This commit is contained in:
parent
8891625cf4
commit
1d36f59b1c
@ -20,6 +20,13 @@
|
|||||||
#include <cmsis_compiler.h>
|
#include <cmsis_compiler.h>
|
||||||
#include "perf_counter.h"
|
#include "perf_counter.h"
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
# pragma clang diagnostic ignored "-Wcompound-token-split-by-macro"
|
||||||
|
#elif defined(__IS_COMPILER_GCC__)
|
||||||
|
# pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef __PERF_CNT_USE_LONG_CLOCK__
|
#ifndef __PERF_CNT_USE_LONG_CLOCK__
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user