static void tick_handler(struct tm *tick_time, TimeUnits changed) { main_window_update_time(tick_time); data_reload_averages(); main_window_redraw(); }
static void down_click_handler(ClickRecognizerRef recognizer, void *context) { s_metric += (s_metric < MAX_METRICS) ? 1 : -(MAX_METRICS); main_window_update_time(); }