iOS/libraries/allegro/allegro/src/psp/ptimer.c
/* psp_timer_init:
 *  Installs the PSP timer thread.
 */
Installs the PSP timer thread.
Installs the PSP timer thread .
static int psp_timer_init(void)
{
   psp_tick_resolution = sceRtcGetTickResolution();
   psp_timer_on = TRUE;
   timer_thread_UID = sceKernelCreateThread("psp_timer_thread",(void *)&psp_timer_thread,
                                             0x18, 0x10000, 0, NULL);
   if (timer_thread_UID < 0) {
      ustrzcpy(allegro_error, ALLEGRO_ERROR_SIZE, get_config_text("Cannot create timer thread"));
      psp_timer_exit();
      return -1;
   }
   if (sceKernelStartThread(timer_thread_UID, 0, NULL) != 0) {
      ustrzcpy(allegro_error, ALLEGRO_ERROR_SIZE, get_config_text("Cannot start timer thread"));
      psp_timer_exit();
      return -1;
   }
   return 0;
}
static int psp_timer_init ( void ) { psp_tick_resolution = sceRtcGetTickResolution ( ) ; psp_timer_on = TRUE ; timer_thread_UID = sceKernelCreateThread ( " " , ( void * ) & psp_timer_thread , 0x18 , 0x10000 , 0 , NULL ) ; if ( timer_thread_UID < 0 ) { ustrzcpy ( allegro_error , ALLEGRO_ERROR_SIZE , get_config_text ( " " ) ) ; psp_timer_exit ( ) ; return -1 ; } if ( sceKernelStartThread ( timer_thread_UID , 0 , NULL ) != 0 ) { ustrzcpy ( allegro_error , ALLEGRO_ERROR_SIZE , get_config_text ( " " ) ) ; psp_timer_exit ( ) ; return -1 ; } return 0 ; }
psp_timer_init:
  Installs the PSP timer thread.
psp_timer_init : Installs the PSP timer thread .
/* Get the PSP ticks per second */