From 9174fec835760941cd13c49c9d161bd13bb7b0e6 Mon Sep 17 00:00:00 2001 From: Guo Yejun Date: Fri, 21 Nov 2014 15:53:42 +0800 Subject: add test of cl_mem_use_host_ptr into benchmark and also refine the code to move time_subtract into utest_helper.hpp/cpp Signed-off-by: Guo Yejun Reviewed-by: "Yang, Rong R" --- utests/utest_helper.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utests/utest_helper.hpp') diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 026eb1cb..5d8e835c 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -230,5 +230,8 @@ extern float cl_FLT_ULP(float float_number); /* Calculator ULP of each INT value */ extern int cl_INT_ULP(int int_number); +/* subtract the time */ +int time_subtract(struct timeval *y, struct timeval *x, struct timeval *result); + #endif /* __UTEST_HELPER_HPP__ */ -- cgit v1.2.1