diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-12-16 19:59:52 +0000 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2020-01-10 18:10:41 +0000 |
commit | 7f15251e2fd6c729a1d8f4f524a4bb902c30cdad (patch) | |
tree | 63d14297c28a1a8296bd0e97dd283f65c2ba528e /tests/framework/Utils.h | |
parent | 13ec5f0a09e038f12cbe0f3b119a215934b72b42 (diff) | |
download | ComputeLibrary-7f15251e2fd6c729a1d8f4f524a4bb902c30cdad.tar.gz |
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 <georgios.pinitas@arm.com>
Change-Id: Ib1b7a1d1ad83c9a99b23f353b1800db075b32bce
Reviewed-on: https://review.mlplatform.org/c/2525
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/framework/Utils.h')
-rw-r--r-- | tests/framework/Utils.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 |