diff options
author | Cyril SIX <cyril.six@kalray.eu> | 2019-07-12 12:05:38 +0200 |
---|---|---|
committer | Cyril SIX <cyril.six@kalray.eu> | 2019-07-12 12:05:38 +0200 |
commit | c64ea8db135af2d541d56f6bd1ebb689e7915589 (patch) | |
tree | b99ae5fa91f613a85655e6adcba12977b642caae /test/monniaux/cycles.h | |
parent | 69fa20d6babe8f9cad978e55332f21f77f3bc964 (diff) | |
download | compcert-kvx-c64ea8db135af2d541d56f6bd1ebb689e7915589.tar.gz compcert-kvx-c64ea8db135af2d541d56f6bd1ebb689e7915589.zip |
(#143) Rajout de la macro TIMEINIT
Diffstat (limited to 'test/monniaux/cycles.h')
-rw-r--r-- | test/monniaux/cycles.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/monniaux/cycles.h b/test/monniaux/cycles.h index f072e479..c7978ff4 100644 --- a/test/monniaux/cycles.h +++ b/test/monniaux/cycles.h @@ -43,6 +43,7 @@ static inline cycle_t get_cycle(void) { return 0; } #endif #ifdef MAX_MEASURES + #define TIMEINIT {_last_stop = get_cycle();} #define TIMESTOP(i) {cycle_t cur = get_cycle(); _total_cycles[i] += cur - _last_stop; _last_stop = cur;} #define TIMEPRINT(n) { for (int i = 0; i <= n; i++) printf("(%d) cycles: %" PRIu64 "\n", i, _total_cycles[i]); } #endif |