mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
16 lines
276 B
C++
16 lines
276 B
C++
#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();
|
|
}
|