diff options
Diffstat (limited to 'test/utils.cpp')
| -rw-r--r-- | test/utils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/utils.cpp b/test/utils.cpp index b53e4e4..ec5abf9 100644 --- a/test/utils.cpp +++ b/test/utils.cpp @@ -293,3 +293,10 @@ double test_cal_topk_accuracy(vector<struct Fieldstat_tag_list_wrapper *> &test_ double accuracy = (double)correct / test_result.size(); return accuracy; } + +long long my_fieldstat_counter_get(const struct fieldstat *instance, int cube_id, int metric_id, int cell_id) +{ + long long value; + fieldstat_counter_get(instance, cube_id, metric_id, cell_id, &value); + return value; +}
\ No newline at end of file |
