FastTimes.c File Reference

#include "frontier.h"
#include "standard.h"
#include <DriverServices.h>
#include <Timer.h>
#include "FastTimes.h"

Include dependency graph for FastTimes.c:

Go to the source code of this file.

Defines

#define RTCToNano(w)   ((double) (w).hi * 1000000000.0 + (double) (w).lo)
#define WideTo64bit(w)   (*(UInt64 *) &(w))
#define MyLMGetTicks()   (*(volatile UInt32 *) 0x16A)

Functions

void FastInitialize ()
UInt64 FastMicroseconds ()
UInt64 FastMilliseconds ()
StringPtr FastMethod ()

Variables

static Boolean gInited = false


Define Documentation

 
#define MyLMGetTicks  )     (*(volatile UInt32 *) 0x16A)
 

Definition at line 81 of file FastTimes.c.

Referenced by FastInitialize().

#define RTCToNano  )     ((double) (w).hi * 1000000000.0 + (double) (w).lo)
 

Definition at line 74 of file FastTimes.c.

Referenced by FastInitialize(), FastMicroseconds(), and FastMilliseconds().

#define WideTo64bit  )     (*(UInt64 *) &(w))
 

Definition at line 75 of file FastTimes.c.

Referenced by FastInitialize(), FastMicroseconds(), and FastMilliseconds().


Function Documentation

void FastInitialize void   ) 
 

Definition at line 113 of file FastTimes.c.

References getframeworkfuncptr(), gInited, MyLMGetTicks, nil, RTCToNano, and WideTo64bit.

Referenced by FastMethod(), FastMicroseconds(), FastMilliseconds(), and shellinit().

Here is the call graph for this function:

StringPtr FastMethod void   ) 
 

Definition at line 325 of file FastTimes.c.

References FastInitialize(), and gInited.

Here is the call graph for this function:

UInt64 FastMicroseconds void   ) 
 

Definition at line 229 of file FastTimes.c.

References FastInitialize(), gInited, RTCToNano, and WideTo64bit.

Here is the call graph for this function:

UInt64 FastMilliseconds void   ) 
 

Definition at line 277 of file FastTimes.c.

References FastInitialize(), gInited, RTCToNano, and WideTo64bit.

Here is the call graph for this function:


Variable Documentation

Boolean gInited = false [static]
 

Definition at line 83 of file FastTimes.c.

Referenced by FastInitialize(), FastMethod(), FastMicroseconds(), and FastMilliseconds().


Generated on Thu Jun 1 07:03:18 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6