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

1999/0228/pc/i8253.c (diff list | history)

1999/0131/sys/src/9/pc/i8253.c:131,1421999/0228/sys/src/9/pc/i8253.c:131,142 (short | long | prev | next)
1998/0710    
 
/* 
 *  return time elapsed since clock start in 
 *  10ths of nanoseconds 
1999/0228    
 *  100 times hz 
1998/0710    
 */ 
uvlong 
i8253read(uvlong *hz) 
{ 
	if(hz) 
		*hz = HZ; 
	return m->ticks; 
1999/0228    
		*hz = HZ*100; 
	return m->ticks*100; 
1998/0710    
} 


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