aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/sandbox
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/sandbox')
-rw-r--r--test/monniaux/sandbox/example.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/monniaux/sandbox/example.c b/test/monniaux/sandbox/example.c
index dccb576e..ce35360a 100644
--- a/test/monniaux/sandbox/example.c
+++ b/test/monniaux/sandbox/example.c
@@ -2,6 +2,7 @@
#include "f.h"
#include "../cycles.h"
+#if 0
int main(void){
cycle_count_config();
@@ -20,3 +21,20 @@ int main(void){
TIMEPRINT(1)
return 0;
}
+#endif
+
+int main(void){
+ cycle_count_config();
+
+ TIMEINIT
+ int a = 42;
+ int b = 21;
+ int c = 42+b;
+ TIMESTOP(0)
+ int d = a + b;
+ int e = a + b + c + d;
+ TIMESTOP(1)
+
+ TIMEPRINT(1)
+ return e;
+}