summaryrefslogtreecommitdiff
path: root/Lagom/TestApp.cpp
blob: 6796c5c5e8a498cc1d7b863176199b0bc60ac1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <LibCore/CEventLoop.h>
#include <LibCore/CTimer.h>
#include <stdio.h>

int main(int, char**)
{
    CEventLoop event_loop;

    auto timer = CTimer::construct(100, [&] {
        dbg() << "Timer fired, good-bye! :^)";
        event_loop.quit(0);
    });

    return event_loop.exec();
}