Example #1
0
void time_hook(OS_time_t *time_struct)
{
   /* this also works: time_struct->seconds = time_struct->seconds + 1.0; */
   /* Increment time */
   UTF_set_sim_time (UTF_get_sim_time() + 1.0);
   /* Associate new time with passed in argument */
   
   *time_struct = UTF_double_to_hwtime (UTF_get_sim_time());
}
Example #2
0
void time_hook(void)
{
	UTF_set_sim_time(UTF_get_sim_time() + 1.0);
}
Example #3
0
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
void TimeHook(void)
{
   UTF_set_sim_time(UTF_get_sim_time() + 1.0);
} /* end TimeHook */