1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 17:31:18 +01:00
2025-09-26 20:06:29 +02:00

36 lines
580 B
C

/*
* SPDX-FileCopyrightText: 2017 JP Bonn
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup cpu_riscv_common
* @{
*
* @file
* @brief Functions to read CPU cycle counter
*
* @author JP Bonn
*/
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Returns a count of the number of clock cycles executed by the
* processor core on which the hart is running from an arbitrary
* start time in the past.
*/
uint64_t get_cycle_count(void);
#ifdef __cplusplus
}
#endif
/** @} */