view tests/js-timer/timer-pending.js @ 45:aa205621d7d6

Plugin history: add command keyword, #392
author David Demelier <markand@malikania.fr>
date Mon, 29 Feb 2016 13:11:58 +0100
parents 1158cffe5a5e
children 6635b9187d71
line wrap: on
line source

count = 0;

function onLoad()
{
	t = new Irccd.Timer(Irccd.Timer.Repeat, 500, function () {
		count += 1;
	});

	t.start();

	/* Force the plugin to wait so that timer push some events in the irccd's queue */
	Irccd.System.sleep(3);
	t.stop();
}