int main(int argc, char *argv[]) { struct appdata ad; struct appcore_ops ops = { .create = __app_create, .terminate = __app_terminate, .pause = __app_pause, .resume = __app_resume, .reset = __app_reset, }; // unsetenv("ELM_SCALE"); /* appcore measure time example */ printf("from AUL to %s(): %d msec\n", __func__, appcore_measure_time_from("APP_START_TIME")); memset(&ad, 0x0, sizeof(struct appdata)); ops.data = &ad; return appcore_efl_main(PACKAGE, &argc, &argv, &ops); }
static gboolean __prt_ltime(gpointer data) { int msec; msec = appcore_measure_time_from(NULL); if (msec) _DBG("[APP %d] first idle after reset: %d msec", _pid, msec); return FALSE; }