![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| system call | hegdeshashi | Shell Programming and Scripting | 10 | 06-16-2009 01:11 AM |
| c system call | rangaswamy | High Level Programming | 1 | 02-19-2008 01:53 PM |
| how to differentiate system call from library call | muru | UNIX for Advanced & Expert Users | 2 | 07-19-2007 11:20 PM |
| Making a system call | hardwickj | High Level Programming | 5 | 07-06-2006 09:28 PM |
| wait system call | a25khan | High Level Programming | 2 | 02-11-2004 11:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
C:system call
Hi
I'm studing the system call. I've written a small program that return the time spent in doing some operations. Now I'd like to write one that return the time spent in user mode of a process. I'm reading that i should use the tms struct: Code:
clock_t times(struct tms *buf);
struct tms {
clock_t tms_utime; /* user time */
clock_t tms_stime; /* system time */
clock_t tms_cutime; /* user time of children */
clock_t tms_cstime; /* system time of children */
};
Can anyone help with a small example that show how can i use the times function? Thanks in advance D. |
|
|||||
|
Here is a specification and an example http:Open Group Base Specification
|
|
||||
|
thanks.
I've tried now it works. D. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| clock, process, system call, time.h |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|