1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (c) 2002 Cray Inc.
5 * Copyright (c) 2002 Eric Hoffman
7 * This file is part of Portals, http://www.sf.net/projects/sandiaportals/
10 typedef unsigned long long when;
12 typedef struct timer *timer;
13 timer register_timer(when interval,
14 void (*function)(void *),
16 timer register_timer_wait(void);
17 void remove_timer(timer);
18 void timer_loop(void);
19 void initialize_timer(void (*block)(when));
20 void timer_fire(void);
23 #define HZ 0x100000000ull