From 7f15251e2fd6c729a1d8f4f524a4bb902c30cdad Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 16 Dec 2019 19:59:52 +0000 Subject: COMPMID-2986: Extend test framework options. Add the following option to the test framework: - delay: Allows run delay between tests in seconds. Signed-off-by: Georgios Pinitas Change-Id: Ib1b7a1d1ad83c9a99b23f353b1800db075b32bce Reviewed-on: https://review.mlplatform.org/c/2525 Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins --- tests/framework/Utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/framework/Utils.h') diff --git a/tests/framework/Utils.h b/tests/framework/Utils.h index c0442cf9af..0280daaae9 100644 --- a/tests/framework/Utils.h +++ b/tests/framework/Utils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -170,6 +170,11 @@ inline std::string arithmetic_to_string(T val, int decimal_places = 0) return ss.str(); } +/** Makes the calling thread to sleep for a specified number of seconds + * + * @param[in] seconds Amount of seconds to sleep. Will return immediately if less or equal to zero. + */ +void sleep_in_seconds(float seconds); } // namespace framework } // namespace test } // namespace arm_compute -- cgit v1.2.1