Skip to content
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "scheduler.h"
#include "osd.h"
#include "offload.h"
#include "hardware.h"

const char *version = "$VER:" VDATE;

int main(int argc, char *argv[])
{
printf("ZAPAROO_T2 main_start_ms=%lu\n", GetTimer(0));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i want to know when main start during boot. is the time we want to save before this line? if yes we should stop looking here.


// Always pin main worker process to core #1 as core #0 is the
// hardware interrupt handler in Linux. This reduces idle latency
// in the main loop by about 6-7x.
Expand Down
3 changes: 3 additions & 0 deletions scheduler.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "scheduler.h"
#include <stdio.h>
#include <unistd.h>
#include "libco.h"
#include "menu.h"
#include "user_io.h"
Expand Down Expand Up @@ -86,6 +87,8 @@ void scheduler_run(void)
for (;;)
{
scheduler_schedule();
if (alt_launcher_scheduler_sleep_enabled())
usleep(100);
}

co_delete(co_ui);
Expand Down
Loading