| /src/games/larn/ |
| diag.c | 22 static struct tms cputime; variable in typeref:struct:tms 200 times(&cputime); /* get cpu time */ 201 c[CPUTIME] += (cputime.tms_utime + cputime.tms_stime) / 60;
|
| scores.c | 77 short cputime;/* CPU time needed in seconds */ member in struct:log_fmt 691 times(&cputime);/* get CPU time -- write out score info */ 692 logg.cputime = i = (cputime.tms_utime + cputime.tms_stime) / 60 + c[CPUTIME]; 790 lprintf(" CPU time used: %ld seconds, Machine usage: %ld.%02ld%%\n", (long) (logg.cputime), (long) (logg.usage / 100), (long) (logg.usage % 100)); 792 lprintf(" out bytes per move: %ld, time per move: %ld ms\n", (long) (logg.bytout / logg.moves), (long) ((logg.cputime * 1000) / logg.moves));
|
| /src/sys/kern/ |
| subr_time.c | 144 struct timeval cputime; local 154 &cputime); 165 TIMEVAL_TO_TIMESPEC(&cputime, ts);
|
| /src/usr.bin/systat/ |
| pigs.c | 175 u_int64_t cputime[CPUSTATES]; local 208 (void) fetch_cptime(cputime); 211 t += cputime[i] - stime[i]; 215 pt[nproc].pt_pctcpu = (cputime[CP_IDLE] - stime[CP_IDLE]) / t; 217 stime[i] = cputime[i];
|
| vmstat.c | 76 static float cputime(int); 455 f1 = cputime(i); 720 cputime(int indx) function
|
| /src/external/lgpl3/mpfr/dist/tests/ |
| troot.c | 38 cputime (void) function 501 st1 = cputime (); 502 for (l = 0; cputime () - st1 < 1.0; l++) 504 st1 = (cputime () - st1) / l; 514 st2 = cputime (); 515 for (l = 0; cputime () - st2 < 1.0; l++) 521 st2 = (cputime () - st2) / l;
|
| tsum.c | 33 cputime (void) function 1239 st = cputime (); 1242 printf ("mpfr_sum_naive took %dms\n", cputime () - st); 1244 st = cputime (); 1247 printf ("mpfr_sum took %dms\n", cputime () - st);
|
| /src/external/bsd/top/dist/machine/ |
| m_hpux10.c | 492 register long cputime; local
|
| m_hpux7.c | 537 register long cputime; local 549 /* get the process's user struct and set cputime */ 554 cputime = 0; 585 cputime = u.u_ru.ru_utime.tv_sec + u.u_ru.ru_stime.tv_sec; 601 format_time(cputime),
|
| m_hpux8.c | 504 register long cputime; local 516 /* get the process's user struct and set cputime */ 521 cputime = 0; 552 cputime = __PST2P(pp, pst_cptickstotal) / hz; 568 format_time(cputime),
|
| m_hpux9.c | 522 register long cputime; local 536 /* get the process's user struct and set cputime */ 541 cputime = 0; 572 cputime = __PST2P(pp, pst_cptickstotal) / hz; 591 format_time(cputime),
|
| m_irix5.c | 439 register long cputime; local 448 cputime = pp->pr_time.tv_sec; 468 format_time(cputime),
|
| m_sunos4.c | 648 register long cputime; local 658 /* get the process's user struct and set cputime */ 662 cputime = 0; 679 cputime = u.u_ru.ru_utime.tv_sec + u.u_ru.ru_stime.tv_sec; 715 format_time(cputime),
|
| m_svr4.c | 438 register long cputime; local 447 cputime = pp->pr_time.tv_sec; 460 format_time(cputime),
|
| m_decosf1.c | 568 register long cputime; local 578 /* get the process's user struct and set cputime */ 627 cputime = u.u_ru.ru_utime.tv_sec + u.u_ru.ru_stime.tv_sec; 642 format_time(cputime),
|
| m_irixsgi.c | 625 long cputime; local 633 cputime = pp->pr_time.tv_sec; 645 format_time(cputime),
|
| m_macosx.c | 390 register long cputime; local 405 * get the process structure and take care of the cputime 430 * cputime = PP(pp, p_rtime).tv_sec; 433 cputime = RP(pp, user_time).seconds + RP(pp, system_time).seconds; 469 format_time(cputime),
|
| m_netbsd.c | 879 long cputime; local 894 /* get the process's user struct and set cputime */ 898 cputime = pp->p_uticks + pp->p_sticks + pp->p_iticks; 900 cputime = pp->p_rtime_sec; /* This does not count interrupts */ 940 format_time(cputime), 979 long cputime; local 996 /* get the process's user struct and set cputime */ 999 cputime = pl->l_rtime_sec; 1039 format_time(cputime),
|
| m_sco5.c | 536 register time_t cputime; local 550 /* get the process's user struct and set cputime */ 555 cputime = 0; 578 cputime = u.u_utime + u.u_stime; 579 /* cputime = pp->p_utime + pp->p_stime; */ 610 format_time(cputime / Hz),
|
| m_svr5.c | 496 register long cputime; local 505 cputime = pp->pr_time.tv_sec; 524 format_time(cputime),
|
| /src/bin/ps/ |
| print.c | 1045 cputime(struct pinfo *pi, VARENT *ve, enum mode mode) function
|
| /src/external/lgpl3/gmp/dist/demos/ |
| pexpr.c | 69 __t0 = cputime (); \ 71 __tmp = cputime () - __t0; \ 123 int cputime (void); 139 /* cputime() returns user CPU time measured in milliseconds. */ 143 cputime (void) function 153 cputime (void) function 161 cputime (void) function 1299 t0 = cputime (); 1301 printf ("time: %d\n", cputime () - t0);
|