From 03799ca44d005c11caa524719a9a62b4c13be936 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Wed, 8 May 2019 22:03:23 +0200 Subject: added clock --- test/monniaux/lustre-convertible/convertible_main_loop.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/monniaux/lustre-convertible/convertible_main_loop.c b/test/monniaux/lustre-convertible/convertible_main_loop.c index f2c1f25a..a53d3e5e 100644 --- a/test/monniaux/lustre-convertible/convertible_main_loop.c +++ b/test/monniaux/lustre-convertible/convertible_main_loop.c @@ -7,6 +7,7 @@ #include #include #include "convertible_main.h" +#include "../clock.h" /* MACROS DEFINITIONS ****************/ #ifndef TT @@ -65,6 +66,9 @@ int main(){ #endif /* Main loop */ + clock_prepare(); + clock_start(); + for(int count=0; count<1000; count++){ ++_s; Start = _get_bool("Start"); @@ -78,6 +82,10 @@ int main(){ // printf("%d %d %d %d %d %d %f #outs %d %d %f %f\n",Start,Parked,Rot,Tic,OnOff,Done,Distance,Danger,Locked,Speed,Hood_Speed); // printf("%d %d %f %f\n",Danger,Locked,Speed,Hood_Speed); } - return 1; + + clock_stop(); + print_total_clock(); + + return 0; } -- cgit