deps/kb_meme/meme-5.0.1/src/dreme-sax.c
/*****************************************************************************
 * dreme > run_time
 *
 *  cpu             the time the program was running on a cpu.
 *  real            the real world time the program was running.
 *  stop            the reason dreme stopped.
 ****************************************************************************/
dreme > run_time
cpu             the time the program was running on a cpu.
real            the real world time the program was running.
stop            the reason dreme stopped.
dreme > run_time cpu the time the program was running on a cpu . real the real world time the program was running . stop the reason dreme stopped .
static void start_ele_run_time(PS_T *ps, const xmlChar **attrs) {
  double cpu_time, real_time;
  int stop;
  char* stop_options[3] = {"count", "evalue", "time"};
  int stop_values[3] = {DREME_STOP_COUNT, DREME_STOP_EVALUE, DREME_STOP_TIME};
  MULTI_T stop_multi = {.count = 3, .options = stop_options, .outputs = stop_values, .target = &(stop)};
  char* names[3] = {"cpu", "real", "stop"};
  int (*parsers[3])(char*, void*) = {ld_double, ld_double, ld_multi};
  void *data[3] = {&cpu_time, &real_time, &stop_multi};
  bool required[3] = {true, true, true};
  bool done[3];
  parse_attributes(dreme_attr_parse_error, ps, "run_time", attrs, 3, names, parsers, data, required, done);
  if (ps->callbacks->handle_run_time && ps->state != PS_ERROR) {
    ps->callbacks->handle_run_time(ps->user_data, cpu_time, real_time, (DREME_STOP_EN)stop);
  }
}
static void start_ele_run_time ( PS_T * ps , const xmlChar * * attrs ) { double cpu_time , real_time ; int stop ; char * stop_options [ 3 ] = { " " , " " , " " } ; int stop_values [ 3 ] = { DREME_STOP_COUNT , DREME_STOP_EVALUE , DREME_STOP_TIME } ; MULTI_T stop_multi = { . count = 3 , . options = stop_options , . outputs = stop_values , . target = & ( stop ) } ; char * names [ 3 ] = { " " , " " , " " } ; int ( * parsers [ 3 ] ) ( char * , void * ) = { ld_double , ld_double , ld_multi } ; void * data [ 3 ] = { & cpu_time , & real_time , & stop_multi } ; bool required [ 3 ] = { true , true , true } ; bool done [ 3 ] ; parse_attributes ( dreme_attr_parse_error , ps , " " , attrs , 3 , names , parsers , data , required , done ) ; if ( ps -> callbacks -> handle_run_time && ps -> state != PS_ERROR ) { ps -> callbacks -> handle_run_time ( ps -> user_data , cpu_time , real_time , ( DREME_STOP_EN ) stop ) ; } }
dreme > run_time
  cpu             the time the program was running on a cpu.
dreme > run_time cpu the time the program was running on a cpu .