File: spinner.h

package info (click to toggle)
nws 2.11-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,700 kB
  • ctags: 2,820
  • sloc: ansic: 28,849; sh: 3,289; java: 1,205; makefile: 697; perl: 12
file content (11 lines) | stat: -rwxr-xr-x 356 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
/* $Id: spinner.h,v 1.3 1999/06/15 21:11:17 jhayes Exp $ */

/*
** Runs a computation for #msecToSpin# milliseconds, then returns the cpu time
** and wall clock time required in #cpuUsed# and #wallUsed#, respectively.
** Returns 1 if successful, 0 otherwise.
*/
int
spin(unsigned int msecToSpin,
     unsigned long *cpuUsed,
     unsigned long *wallUsed);