cc_etimes2.c

来自「a software code for computing selected e」· C语言 代码 · 共 30 行

C
30
字号
#include <sys/times.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <ilupack.h>#include <ilupackmacros.h>#if 0NAME       times - get process timesSYNOPSIS       #include <sys/times.h>       clock_t times(struct tms *buf);DESCRIPTION       The  times()  function stores the current process times in the struct tms that       buf points to.  The struct tms is as defined in <sys/times.h>:       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 */       };       The tms_utime field contains the CPU time spent executing instructions of  the       calling  process.  The tms_stime field contains the CPU time spent in the sys

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?