#include "lib/timing.h"

task main()
{
	writeDebugStreamLine("Waiting 1 second");
	resetTimeDelta();
	getTimeDelta();
	wait1Msec(1000);
	writeDebugStreamLine("delta: %d", getTimeDelta());

	writeDebugStreamLine("Waiting 5 seconds");
	resetTimeDelta();
	getTimeDelta();
	wait1Msec(5000);
	writeDebugStreamLine("delta: %d", getTimeDelta());

	writeDebugStreamLine("Waiting 10 seconds");
	resetTimeDelta();
	getTimeDelta();
	wait1Msec(10000);
	writeDebugStreamLine("delta: %d", getTimeDelta());
}

#include "lib/timing.h"

task main()
{
	// getTimeDelta()
	writeDebugStreamLine("Testing getTimeDelta()");
	writeDebugStreamLine("Waiting 1 second");
	resetTimeDelta();
	getTimeDelta();
	wait1Msec(1000);
	writeDebugStreamLine("delta: %d", getTimeDelta());

	writeDebugStreamLine("Waiting 5 seconds");
	resetTimeDelta();
	getTimeDelta();
	wait1Msec(5000);
	writeDebugStreamLine("delta: %d", getTimeDelta());

	writeDebugStreamLine("Waiting 10 seconds");
	resetTimeDelta();
	getTimeDelta();
	wait1Msec(10000);
	writeDebugStreamLine("delta: %d", getTimeDelta());

	writeDebugStreamLine("Testing getTimeDeltaTimer() (using default timer)");
	writeDebugStreamLine("Waiting 1 second");
	resetTimeDeltaTimer();
	getTimeDeltaTimer();
	wait1Msec(1000);
	writeDebugStreamLine("delta: %d", getTimeDeltaTimer());

	writeDebugStreamLine("Waiting 5 seconds");
	resetTimeDeltaTimer();
	getTimeDeltaTimer();
	wait1Msec(5000);
	writeDebugStreamLine("delta: %d", getTimeDeltaTimer());

	writeDebugStreamLine("Waiting 10 seconds");
	resetTimeDeltaTimer();
	getTimeDeltaTimer();
	wait1Msec(10000);
	writeDebugStreamLine("delta: %d", getTimeDeltaTimer());
}

Add tests for alternative timing method
Add tests for alternative timing method
