V8/usr/src/cmd/cfront/libC/task/timer.c

Compare this file to the similar file:
Show the results in this format:

#include "task.h"

timer.timer(int d) : (TIMER)
{
	s_state = IDLE;
	insert(d,this);
}

timer.~timer()
{
	if (s_state != TERMINATED) task_error(E_TIMERDEL,this);
}

void timer.reset(int d)
{
	remove();
	insert(d,this);
}

void timer.print(int)
{ 
	long tt = s_time;
	printf("timer %ld == clock+%ld\n",tt,tt-clock);
}