Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CPUTIME(3)		   Library Functions Manual		    CPUTIME(3)

NAME
       cputime,	times -	cpu time in this process and children

SYNOPSIS
       #include	<u.h>
       #include	<libc.h>

       int    times(long t[4])

       double cputime(void)

DESCRIPTION
       If  t  is  non-null,  times fills it in with the	number of milliseconds
       spent in	user code, system calls, child processes  in  user  code,  and
       child processes in system calls.	 Cputime returns the sum of those same
       times, converted	to seconds.  Times returns the elapsed real  time,  in
       milliseconds, that the process has been running.

SOURCE
       /src/lib9/time.c

								    CPUTIME(3)

NAME | SYNOPSIS | DESCRIPTION | SOURCE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=cputime&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help