Changeset 47535a0d for doc/generic_types/evaluation/bench.hpp
- Timestamp:
- Apr 10, 2017, 5:26:04 PM (6 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 65cb413
- Parents:
- 2f0fc56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/bench.hpp
r2f0fc56 r47535a0d 5 5 #include <time.h> 6 6 7 #define N 100000000 8 7 static const int N = 100000000; 9 8 10 9 long ms_between(clock_t start, clock_t end) { … … 17 16 code \ 18 17 _end = clock(); \ 19 std::cout << name << ":\t" << std::setw( 7) << ms_between(_start, _end) << std::setw(0) << " ms" << std::endl; \18 std::cout << name << ":\t" << std::setw(8) << ms_between(_start, _end) << std::setw(0) << " ms" << std::endl; \ 20 19 } 21 20
Note: See TracChangeset
for help on using the changeset viewer.