4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 02:51:33 +08:00

cputime support 64bit.

This commit is contained in:
aozima 2021-11-29 18:49:09 +08:00
parent 1cf8370b1b
commit 9a3d0a0ea2
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ float clock_cpu_getres(void)
*
* @return the cpu tick
*/
uint32_t clock_cpu_gettime(void)
uint64_t clock_cpu_gettime(void)
{
if (_cputime_ops)
return _cputime_ops->cputime_gettime();

View File

@ -16,11 +16,11 @@
struct rt_clock_cputime_ops
{
float (*cputime_getres) (void);
uint32_t (*cputime_gettime)(void);
uint64_t (*cputime_gettime)(void);
};
float clock_cpu_getres(void);
uint32_t clock_cpu_gettime(void);
uint64_t clock_cpu_gettime(void);
uint32_t clock_cpu_microsecond(uint32_t cpu_tick);
uint32_t clock_cpu_millisecond(uint32_t cpu_tick);