ladybird/Meta/Lagom/TestApp.cpp
Andreas Kling dcd10149fe Lagom: Move this into Meta/
This is more of a meta thing, since it's not seeing active development,
but is just a way for me to build some Serenity parts and include them
in other projects. Move it out of the root to keep things tidy.
2019-11-18 09:07:05 +01:00

15 lines
294 B
C++

#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();
}