提交 9a3d0a0e 编写于 作者: wuyangyong's avatar wuyangyong

cputime support 64bit.

上级 1cf8370b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册