#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <sys/time.h>
#include "rle_config.h"
Go to the source code of this file.
|
#define | USPS 1000000 /* number of microseconds in a second */ |
|
#define | TICK 10000 /* system clock resolution in microseconds */ |
|
|
static char | rcsid [] = "$Header: /l/spencer/src/urt/get/getx11/RCS/timer.c,v 3.0.1.3 1992/03/04 19:31:40 spencer Exp $" |
|
static int | ringring |
|
static void(* | ofunc )() |
|
#define TICK 10000 /* system clock resolution in microseconds */ |
#define USPS 1000000 /* number of microseconds in a second */ |
void set_timer |
( |
unsigned |
n | ) |
|
Definition at line 46 of file timer.c.
51 register struct itimerval *itp = &itv;
57 timerclear(&itp->it_interval);
58 itp->it_value.tv_sec = n /
USPS;
59 itp->it_value.tv_usec = n %
USPS;
63 (void) setitimer(ITIMER_REAL, itp, (
struct itimerval *)0);
char rcsid[] = "$Header: /l/spencer/src/urt/get/getx11/RCS/timer.c,v 3.0.1.3 1992/03/04 19:31:40 spencer Exp $" |
|
static |