00001 /* clib/include/sys/times.h 00002 * 00003 * Provides access to system specific time and time based operations in ABLE. 00004 * Some care has been taken to make this as compatible as possible with 00005 * other operating systems. 00006 * 00007 * Copyright 2007 Simtec Electronics 00008 * 00009 * Permission is hereby granted, free of charge, to any person 00010 * obtaining a copy of this software and associated documentation 00011 * files (the "Software"), to deal in the Software without 00012 * restriction, including without limitation the rights to use, copy, 00013 * modify, merge, publish, distribute, sublicense, and/or sell copies 00014 * of the Software, and to permit persons to whom the Software is 00015 * furnished to do so, subject to the following conditions: 00016 * 00017 * The above copyright notice and this permission notice shall be 00018 * included in all copies or substantial portions of the Software. 00019 * 00020 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00021 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00022 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00023 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00024 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00025 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00026 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00027 * SOFTWARE. 00028 * 00029 */ 00030 00031 #ifndef _ABLE_CLIB_SYS_TIMES_H 00032 #define _ABLE_CLIB_SYS_TIMES_H 1 00033 00034 #include <sys/types.h> 00035 00036 /* Structure describing CPU time used by a process and its children. */ 00037 struct tms { 00038 clock_t tms_utime; /* User CPU time. */ 00039 clock_t tms_stime; /* System CPU time. */ 00040 00041 clock_t tms_cutime; /* User CPU time of dead children. */ 00042 clock_t tms_cstime; /* System CPU time of dead children. */ 00043 }; 00044 00045 extern clock_t times (struct tms *); 00046 00047 #endif /* _ABLE_CLIB_SYS_TIMES_H */