diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-12-19 17:52:43 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-12-19 17:52:43 -0800 |
commit | a8f26243b483f85f87f4f46b8c3b4734aa2113a4 (patch) | |
tree | 81cadb6038dcf8e6db9c40b8121c5451d391cac1 /src/main.c | |
parent | 79603efef8fd84fea1d87784ca7538958d0dabd3 (diff) |
Removed bench.h and timing calls in main.c
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -4,7 +4,6 @@ #include <errno.h> #include "config.h" #include "cmark.h" -#include "bench.h" #if defined(_WIN32) && !defined(__CYGWIN__) #include <io.h> @@ -153,14 +152,12 @@ int main(int argc, char *argv[]) { exit(1); } - start_timer(); while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) { cmark_parser_feed(parser, buffer, bytes); if (bytes < sizeof(buffer)) { break; } } - end_timer("processing lines"); fclose(fp); } @@ -175,18 +172,12 @@ int main(int argc, char *argv[]) { } } - start_timer(); document = cmark_parser_finish(parser); - end_timer("finishing document"); cmark_parser_free(parser); - start_timer(); print_document(document, writer, options, width); - end_timer("print_document"); - start_timer(); cmark_node_free(document); - end_timer("free_blocks"); free(files); |