Go to the source code of this file.
Functions | |
int | GNUNET_SPEEDUP_start_ (const struct GNUNET_CONFIGURATION_Handle *cfg) |
Start task that may speed up our system clock artificially. More... | |
void | GNUNET_SPEEDUP_stop_ (void) |
Stop tasks that modify clock behavior. More... | |
int GNUNET_SPEEDUP_start_ | ( | const struct GNUNET_CONFIGURATION_Handle * | cfg | ) |
Start task that may speed up our system clock artificially.
cfg | configuration to use |
Definition at line 60 of file speedup.c.
References cfg, delta, do_speedup(), GNUNET_assert, GNUNET_CONFIGURATION_get_value_time(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_NO, GNUNET_OK, GNUNET_SCHEDULER_add_now_with_lifeness(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_SYSERR, interval, LOG, GNUNET_TIME_Relative::rel_value_us, and speedup_task.
Referenced by program_main().
void GNUNET_SPEEDUP_stop_ | ( | void | ) |
Stop tasks that modify clock behavior.
Definition at line 100 of file speedup.c.
References delta, GNUNET_ERROR_TYPE_DEBUG, GNUNET_SCHEDULER_cancel(), interval, LOG, GNUNET_TIME_Relative::rel_value_us, and speedup_task.
Referenced by GNUNET_PROGRAM_conf_and_options(), GNUNET_SERVICE_run_(), and shutdown_task().