summaryrefslogtreecommitdiff
path: root/Lagom/TestApp.cpp
blob: dbf2c1d79edc441c105abacb9c2a0c84e6e7cfd1 (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;

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

    return event_loop.exec();
}