view tests/js-timer/timer.js @ 575:0902cacbd31d

Docs: update indexes
author David Demelier <markand@malikania.fr>
date Wed, 29 Nov 2017 14:49:12 +0100
parents 75e3711c95f8
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();
}