Add timer ifra to main loop
Add g_scheduler to core