Lines Matching defs:clk_id
196 long clk_id;
197 if (!PyArg_ParseTuple(args, "l:clock_gettime", &clk_id)) {
199 int clk_id;
200 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) {
205 ret = clock_gettime((clockid_t)clk_id, &tp);
214 "clock_gettime(clk_id) -> float\n\
216 Return the time of the specified clock clk_id.");
222 int clk_id;
226 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) {
230 ret = clock_gettime((clockid_t)clk_id, &ts);
242 "clock_gettime_ns(clk_id) -> int\n\
244 Return the time of the specified clock clk_id as nanoseconds.");
251 int clk_id;
257 if (!PyArg_ParseTuple(args, "iO:clock_settime", &clk_id, &obj))
266 ret = clock_settime((clockid_t)clk_id, &tp);
275 "clock_settime(clk_id, time)\n\
277 Set the time of the specified clock clk_id.");
282 int clk_id;
288 if (!PyArg_ParseTuple(args, "iO:clock_settime", &clk_id, &obj)) {
299 ret = clock_settime((clockid_t)clk_id, &ts);
308 "clock_settime_ns(clk_id, time)\n\
310 Set the time of the specified clock clk_id with nanoseconds.");
318 int clk_id;
321 if (!PyArg_ParseTuple(args, "i:clock_getres", &clk_id))
324 ret = clock_getres((clockid_t)clk_id, &tp);
334 "clock_getres(clk_id) -> floating point number\n\
336 Return the resolution (precision) of the specified clock clk_id.");
350 clockid_t clk_id;
354 err = pthread_getcpuclockid((pthread_t)thread_id, &clk_id);
361 __msan_unpoison(&clk_id, sizeof(clk_id));
363 return PyLong_FromLong(clk_id);
369 Return the clk_id of a thread's CPU time clock.");
1256 const clockid_t clk_id = CLOCK_PROF;
1259 const clockid_t clk_id = CLOCK_PROCESS_CPUTIME_ID;
1263 if (clock_gettime(clk_id, &ts) == 0) {
1269 if (clock_getres(clk_id, &res)) {
1500 const clockid_t clk_id = CLOCK_THREAD_CPUTIME_ID;
1503 if (clock_gettime(clk_id, &ts)) {
1512 if (clock_getres(clk_id, &res)) {