view tests/data/timer.js @ 994:56114ae85868

cmake: add pkg-config file
author David Demelier <markand@malikania.fr>
date Wed, 10 Feb 2021 21:52:32 +0100
parents 371e1cc2c697
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();
}