Itimer.h 846 Bytes
Newer Older
1
/* -----------------------------------------------------------------------------
sof's avatar
sof committed
2
 * $Id: Itimer.h,v 1.10 2001/11/27 01:51:23 sof Exp $
3
 *
4
 * (c) The GHC Team 1998-2001
5 6 7 8 9
 *
 * Interval timer for profiling and pre-emptive scheduling.
 *
 * ---------------------------------------------------------------------------*/

10 11 12
# define TICK_FREQUENCY   50                      /* ticks per second */
# define TICK_MILLISECS   (1000/TICK_FREQUENCY)   /* ms per tick */

13 14 15 16 17
/* Context switch timing constants. Context switches happen after a
 * whole number of ticks, the default being every tick.
 */
#define CS_MIN_MILLISECS TICK_MILLISECS       /* milliseconds per slice */
 
sof's avatar
sof committed
18 19
int  startVirtTimer( nat ms );
int  stopVirtTimer ( void );
20 21
void block_vtalrm_signal       ( void );
void unblock_vtalrm_signal     ( void );
andy's avatar
andy committed
22
unsigned int getourtimeofday   ( void );