3 /* chrono.h - timer macros for GRAS */
5 /* Copyright (c) 2005 Martin Quinson, Arnaud Legrand. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
18 void gras_bench_always_begin(const char *location);
19 void gras_bench_always_end(void);
21 /** \brief Start benchmark this part of the code
23 #define GRAS_BENCH_ALWAYS_BEGIN gras_bench_always_begin(__FILE__ __LINE__ __FUNCTION__)
24 /** \brief Stop benchmark this part of the code
26 #define GRAS_BENCH_ALWAYS_END gras_bench_always_end()
28 /** \brief Start benchmark this part of the code if it has never been benchmarked before
30 #define GRAS_BENCH_ONCE_BEGIN
31 /** \brief Stop benchmarking this part of the code
33 #define GRAS_BENCH_ONCE_END
37 #endif /* GRAS_CHRONO_H */