Function report |
Source Code:kernel\time\posix-cpu-timers.c |
Create Date:2022-07-28 10:47:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:posix_cpu_clock_getres
Proto:static int posix_cpu_clock_getres(const clockid_t which_clock, struct timespec64 *tp)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const clockid_t | which_clock | |
struct timespec64 * | tp |
167 | If Not error Then |
168 | seconds = 0 |
169 | nanoseconds = ( NSEC_PER_SEC + HZ - 1) / HZ |
170 | If CPUCLOCK_WHICH(which_clock) == CPUCLOCK_SCHED Then |
176 | nanoseconds = 1 |
179 | Return error |
Name | Describe |
---|---|
process_cpu_clock_getres | |
thread_cpu_clock_getres |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |