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
19#ifndef CPUCYCLE_H
20#define CPUCYCLE_H
21
22#include <stdint.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
33uint64_t get_cycle_count(void);
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* CPUCYCLE_H */
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...