Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

times(3ucb) [sunos man page]

times(3UCB)					     SunOS/BSD Compatibility Library Functions					       times(3UCB)

NAME
times - get process times SYNOPSIS
/usr/ucb/cc [ flag ... ] file ... #include <sys/param.h> #include <sys/types.h> #include <sys/times.h> int times(tmsp); register struct tms *tmsp; DESCRIPTION
The times() function returns time-accounting information for the current process and for the terminated child processes of the current process. All times are reported in clock ticks. The number of clock ticks per second is defined by the variable CLK_TCK, found in the header <limits.h>. A structure with the following members is returned by times(): time_t tms_utime; /* user time */ time_t tms_stime; /* system time */ time_t tms_cutime; /* user time, children */ time_t tms_cstime; /* system time, children */ The children's times are the sum of the children's process times and their children's times. RETURN VALUES
Upon successful completion, times() returns 0. Otherwise, it returns -1. SEE ALSO
time(1), time(2), getrusage(3C), wait(3C) NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system libraries or in multi-threaded applications is unsupported. The times() function has been superseded by getrusage(3C). SunOS 5.10 18 Apr 1994 times(3UCB)

Check Out this Related Man Page

TIMES(2)							System Calls Manual							  TIMES(2)

NAME
times - get process times SYNOPSIS
#include <sys/types.h> #include <sys/times.h> #include <time.h> int times(struct tms *buffer) DESCRIPTION
Times returns time-accounting information for the current process and for the terminated child processes of the current process. All times are in 1/CLOCKS_PER_SEC seconds. This is the structure returned by times: struct tms { clock_t tms_utime; /* user time for this process */ clock_t tms_stime; /* system time for this process */ clock_t tms_cutime; /* children's user time */ clock_t tms_cstime; /* children's system time */ }; The user time is the number of clock ticks used by a process on its own computations. The system time is the number of clock ticks spent inside the kernel on behalf of a process. This does not include time spent waiting for I/O to happen, only actual CPU instruction times. The children times are the sum of the children's process times and their children's times. RETURN
Times returns 0 on success, otherwise -1 with the error code stored into the global variable errno. ERRORS
The following error code may be set in errno: [EFAULT] The address specified by the buffer parameter is not in a valid part of the process address space. SEE ALSO
time(1), wait(2), time(2). 4th Berkeley Distribution May 9, 1985 TIMES(2)
Man Page

5 More Discussions You Might Find Interesting

1. HP-UX

getrusage()

Hi, Can someone gives me an example for the use of getrusage() under HP-UX and AIX. I am using this function to get system statistics. Thank you (2 Replies)
Discussion started by: limame
2 Replies

2. AIX

how would you know your server was rebooted 3 times or 5 times

Is there such location or command to know how many times did you reboot your server in that particular day?in AIX. (3 Replies)
Discussion started by: kenshinhimura
3 Replies

3. Red Hat

filtering the recursive ids in a file

i have a file which contains the data as below, 789990 789990 789990 789990 334989 334989 789990 -- here the no 789990 is repeated 5 times and 334989 is 2 times. i want the output to be, 789990 334989 i.e only one entry of the repeated nos. (4 Replies)
Discussion started by: saravanen
4 Replies

4. Shell Programming and Scripting

Bash scripting

Try to imagine a flag: nnnnx nnnxx nnxxx nxxxx now imagine how it will output: 4 times the "n"and 1 times "x" 3 times "n"and" 2 times" x " .. etc. .. rhombus is the same only instead of "n" is there gap "and " x "is a few times to form the correct shape Can you help... (3 Replies)
Discussion started by: krcek12
3 Replies

5. UNIX for Dummies Questions & Answers

How to copy set of lines n times?

I have a file with following data A B C I would like to print like this n times(For eg:n times) A B C A B C A B C A B C A (3 Replies)
Discussion started by: nsuresh316
3 Replies