Loading...
Searching...
No Matches
cpucycle.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 JP Bonn
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdint.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
29uint64_t get_cycle_count(void);
30
31#ifdef __cplusplus
32}
33#endif
34
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...