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:
parent
1cf8370b1b
commit
9a3d0a0ea2
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user