mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
21 lines
441 B
C
21 lines
441 B
C
#pragma once
|
|
|
|
// Copyright (c) 2019 Christoffer Lerno. All rights reserved.
|
|
// Use of this source code is governed by the GNU LGPLv3.0 license
|
|
// a copy of which can be found in the LICENSE file.
|
|
|
|
|
|
#include <stdint.h>
|
|
#include <time.h>
|
|
|
|
#if USE_PTHREAD
|
|
typedef struct timespec BenchTime;
|
|
#else
|
|
typedef clock_t BenchTime;
|
|
#endif
|
|
|
|
void bench_begin(void);
|
|
double bench_mark(void);
|
|
BenchTime benchstart(void);
|
|
double benchmark(BenchTime start);
|