plan 9 kernel history: overview | file list | diff list

1990/1012/gnot/mem.h (diff list | history)

1990/0821/sys/src/9/gnot/mem.h:21,281990/1012/sys/src/9/gnot/mem.h:21,28 (short | long | prev | next)
1990/08101    
#define	HZ		(60)			/* clock frequency */ 
#define	MS2HZ		(1000/HZ)		/* millisec per clock tick */ 
#define	TK2SEC(t)	((t)/HZ)		/* ticks to seconds */ 
#define	TK2MS(t)	(((t)*1000)/HZ)		/* ticks to milliseconds */ 
#define	MS2TK(t)	(((t)*HZ)/1000)		/* milliseconds to ticks */ 
1990/1012    
#define	TK2MS(t)	((((ulong)(t))*1000)/HZ)	/* ticks to milliseconds */ 
#define	MS2TK(t)	((((ulong)(t))*HZ)/1000)	/* milliseconds to ticks */ 
1990/03091    
 
/* 
 * SR bits 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)