view tests/src/libirccd-js/js-api-timer/timer.js @ 913:5e25439fe98d

misc: update years
author David Demelier <markand@malikania.fr>
date Mon, 03 Feb 2020 20:20:00 +0100
parents 8c44bbcbbab9
children
line wrap: on
line source

count = 0;

function onLoad()
{
	if (typeof (type) === "undefined")
		throw Error("global timer type not defined");

	t = new Irccd.Timer(type, 50, function () {
		count += 1;
	});

	t.start();
}