From edfc5ae355687cdc10d49b566bd6a6d4277acdb2 Mon Sep 17 00:00:00 2001 From: druckdev Date: Mon, 31 May 2021 12:55:37 +0200 Subject: [PATCH] Support UNITY_INCLUDE_EXEC_TIME under Apples OSX The unix way of getting the time works under OSX as well and can be used. --- src/unity_internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unity_internals.h b/src/unity_internals.h index b86fefa..75c2df6 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -333,7 +333,7 @@ typedef UNITY_FLOAT_TYPE UNITY_FLOAT; UnityPrintNumberUnsigned(execTimeMs); \ UnityPrint(" ms)"); \ } - #elif defined(__unix__) + #elif defined(__unix__) || defined(__APPLE__) #include #define UNITY_TIME_TYPE struct timespec #define UNITY_GET_TIME(t) clock_gettime(CLOCK_MONOTONIC, &t)