2016-09-08 07:21:25 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-08 07:21:25 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STATUS_H
|
|
|
|
#define _STATUS_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2016-09-29 22:38:29 +00:00
|
|
|
#include <time.h>
|
2016-09-08 07:21:25 +00:00
|
|
|
#include <inttypes.h>
|
|
|
|
|
2016-09-14 14:07:24 +00:00
|
|
|
double get_avg_exec_time (hc_device_param_t *device_param, const int last_num_entries);
|
|
|
|
|
2016-09-29 20:27:04 +00:00
|
|
|
void status_display_machine_readable (status_ctx_t *status_ctx, opencl_ctx_t *opencl_ctx, const hwmon_ctx_t *hwmon_ctx, const hashes_t *hashes, const restore_ctx_t *restore_ctx, const user_options_t *user_options, const user_options_extra_t *user_options_extra, const straight_ctx_t *straight_ctx, const combinator_ctx_t *combinator_ctx, const mask_ctx_t *mask_ctx);
|
|
|
|
void status_display (status_ctx_t *status_ctx, opencl_ctx_t *opencl_ctx, const hwmon_ctx_t *hwmon_ctx, const hashconfig_t *hashconfig, const hashes_t *hashes, const cpt_ctx_t *cpt_ctx, const restore_ctx_t *restore_ctx, const user_options_t *user_options, const user_options_extra_t *user_options_extra, const straight_ctx_t *straight_ctx, const combinator_ctx_t *combinator_ctx, const mask_ctx_t *mask_ctx);
|
|
|
|
void status_benchmark_automate (status_ctx_t *status_ctx, opencl_ctx_t *opencl_ctx, const hashconfig_t *hashconfig);
|
|
|
|
void status_benchmark (status_ctx_t *status_ctx, opencl_ctx_t *opencl_ctx, const hashconfig_t *hashconfig, const user_options_t *user_options);
|
|
|
|
|
2016-09-29 21:25:29 +00:00
|
|
|
int status_progress_init (status_ctx_t *status_ctx, const hashes_t *hashes);
|
|
|
|
void status_progress_destroy (status_ctx_t *status_ctx);
|
|
|
|
void status_progress_reset (status_ctx_t *status_ctx, const hashes_t *hashes);
|
|
|
|
|
|
|
|
int status_ctx_init (status_ctx_t *status_ctx);
|
2016-09-29 20:27:04 +00:00
|
|
|
void status_ctx_destroy (status_ctx_t *status_ctx);
|
2016-09-08 07:21:25 +00:00
|
|
|
|
|
|
|
#endif // _STATUS_H
|