COMMENT @----------------------------------------------------------------------

	Copyright (c) GeoWorks 1989 -- All Rights Reserved

PROJECT:	PC GEOS
FILE:		timer.def

DECLARER:	Kernel

DESCRIPTION:
	This file defines timer structures and routines.

	$Id: timer.def,v 1.1 97/04/04 14:24:50 newdeal Exp $

------------------------------------------------------------------------------@

SetDef	__TIMER

StartKernel

global TimerStart:far
global TimerStartSetOwner:far
global TimerStop:far
global TimerSleep:far
global TimerGetCount:far

;-

global TIMERSTART:far
global TIMERSTOP:far
global TIMERSLEEP:far
global TIMERGETCOUNT:far

;--------------------------------------------------------------------------
;			Structures for timer related calls
;--------------------------------------------------------------------------

;	Values to pass to TimerStart

TimerType 			etype word, 0, 2
TIMER_ROUTINE_ONE_SHOT 		enum TimerType
TIMER_ROUTINE_CONTINUAL 	enum TimerType
TIMER_EVENT_ONE_SHOT 		enum TimerType
TIMER_EVENT_CONTINUAL 		enum TimerType
TIMER_MS_ROUTINE_ONE_SHOT 	enum TimerType
TIMER_EVENT_REAL_TIME		enum TimerType
TIMER_ROUTINE_REAL_TIME		enum TimerType

TimerCompressedDate		record
    TCD_YEAR:7				; years since 1980
    TCD_MONTH:4				; months (1 - 12) (0 illegal)
    TCD_DAY:5				; days (1-31) (0 illegal)
TimerCompressedDate		end

EndKernel
