posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
times.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Tenstorrent AI ULC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
17#ifndef ZEPHYR_INCLUDE_POSIX_SYS_TIMES_H_
18#define ZEPHYR_INCLUDE_POSIX_SYS_TIMES_H_
19
20#include <time.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#if defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__)
27
28#if !defined(_TMS_DECLARED) && !defined(__tms_defined)
36#define _TMS_DECLARED
37#define __tms_defined
38#endif
39
48clock_t times(struct tms *buf);
49
50#endif /* defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__) */
51
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* ZEPHYR_INCLUDE_POSIX_SYS_TIMES_H_ */
clock_t times(struct tms *buf)
Get the process and child process times.
CPU time accounting structure filled in by times().
Definition times.h:30
clock_t tms_utime
User CPU time of the process.
Definition times.h:31
clock_t tms_stime
System CPU time of the process.
Definition times.h:32
clock_t tms_cstime
System CPU time of waited-for children.
Definition times.h:34
clock_t tms_cutime
User CPU time of waited-for children.
Definition times.h:33
POSIX time-of-day types and functions (<sys/time.h>)
unsigned long clock_t
Used for system times in clock ticks or CLOCKS_PER_SEC.
Definition types.h:42