/* Simple timer code V1.01 28/8/04
   Copyright 2008 Jeffrey Lee
   This file is part of WOUM.
   WOUM is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   WOUM is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   You should have received a copy of the GNU General Public License
   along with WOUM.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _TIMER_H
#define _TIMER_H

#define NUM_TIMERS 8

typedef struct {
	int stime;
	int total;
} timer;

/* Start timer number 'n'
*/
extern void timer_start(int n);

/* Stop timer number 'n'
*/
extern void timer_stop(int n);

/* Report value of timer number 'n' (in CS)
*/
extern int timer_report(int n);

/* Reset timer number 'n'
*/
extern void timer_reset(int n);

#endif
