Skip to content

Commit

Permalink
updated to cmark 0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
rhinoman committed Aug 26, 2015
1 parent 34af04f commit 205c04e
Show file tree
Hide file tree
Showing 40 changed files with 33,176 additions and 42,616 deletions.
16 changes: 8 additions & 8 deletions bench.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ float _cmark_start_time;
float _cmark_end_time;
float _cmark_save_time;

#define start_timer() \
_cmark_save_time = _cmark_start_time; \
_cmark_start_time = (float)clock()/CLOCKS_PER_SEC
#define start_timer() \
_cmark_save_time = _cmark_start_time; \
_cmark_start_time = (float)clock() / CLOCKS_PER_SEC

#define end_timer(M) \
_cmark_end_time = (float)clock()/CLOCKS_PER_SEC; \
fprintf(stderr, "[TIME] (%s:%d) %4.f ns " M "\n", __FILE__, \
__LINE__, (_cmark_end_time - _cmark_start_time) * 1000000); \
_cmark_start_time = _cmark_save_time;
#define end_timer(M) \
_cmark_end_time = (float)clock() / CLOCKS_PER_SEC; \
fprintf(stderr, "[TIME] (%s:%d) %4.f ns " M "\n", __FILE__, __LINE__, \
(_cmark_end_time - _cmark_start_time) * 1000000); \
_cmark_start_time = _cmark_save_time;

#else
#define start_timer()
Expand Down
Loading

0 comments on commit 205c04e

Please sign in to comment.