Loading...
Searching...
No Matches
cpucycle.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 JP Bonn
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
9#pragma once
10
20
21#include <stdint.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
32uint64_t get_cycle_count(void);
33
34#ifdef __cplusplus
35}
36#endif
37
uint64_t get_cycle_count(void)
Returns a count of the number of clock cycles executed by the processor core on which the hart is run...