summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorChuanbo Weng <chuanbo.weng@intel.com>2015-02-03 10:27:22 +0800
committerZhigang Gong <zhigang.gong@intel.com>2015-02-06 12:46:22 +0800
commit25a6a17a4ec46427ac29a0f0b4ce765c440864c7 (patch)
tree2a9f902f2509a6f70717f269febc915495f53139 /utests/utest_helper.hpp
parenta1ae5876623858957c3841edf7d0f79bc193ad3a (diff)
downloadbeignet-25a6a17a4ec46427ac29a0f0b4ce765c440864c7.tar.gz
Refine benchmark output.
Change output measurement from time to bandwidth, so we can compare all benchmark results easily. And change return type of benchmark from int to double, because int is not precise enough. v2: Change output measurement from time to bandwidth. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r--utests/utest_helper.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index 5d8e835c..6d097662 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -231,7 +231,7 @@ extern float cl_FLT_ULP(float float_number);
extern int cl_INT_ULP(int int_number);
/* subtract the time */
-int time_subtract(struct timeval *y, struct timeval *x, struct timeval *result);
+double time_subtract(struct timeval *y, struct timeval *x, struct timeval *result);
#endif /* __UTEST_HELPER_HPP__ */