mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FS-7885 Add getcputime command
This commit is contained in:
@@ -1279,6 +1279,15 @@ SWITCH_DECLARE(switch_status_t) switch_frame_buffer_dup(switch_frame_buffer_t *f
|
||||
SWITCH_DECLARE(switch_status_t) switch_frame_buffer_destroy(switch_frame_buffer_t **fbP);
|
||||
SWITCH_DECLARE(switch_status_t) switch_frame_buffer_create(switch_frame_buffer_t **fbP);
|
||||
|
||||
typedef struct {
|
||||
int64_t userms;
|
||||
int64_t kernelms;
|
||||
} switch_cputime;
|
||||
/**
|
||||
/ Return used CPU time in this process for user and kernel code
|
||||
**/
|
||||
SWITCH_DECLARE(void) switch_getcputime(switch_cputime *t);
|
||||
|
||||
SWITCH_END_EXTERN_C
|
||||
#endif
|
||||
/* For Emacs:
|
||||
|
||||
Reference in New Issue
Block a user