/* The clock_cpu_seops() function shall set the ops of cpu time. */
int clock_cpu_setops(const struct rt_clock_cputime_ops *ops)
/* The clock_cpu_seops() function shall set the ops of cpu time. */
int clock_cpu_setops(const struct rt_clock_cputime_ops *ops)
{
    _cputime_ops = ops;
    if (ops)
    {
        RT_ASSERT(ops->cputime_getres  != RT_NULL);
        RT_ASSERT(ops->cputime_gettime != RT_NULL);
    }
    return 0;
}