- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/ctxswitch/kos_fibre.cpp
rb4107c8 rdc33b5b 3 3 #include "bench.h" 4 4 5 int main( int argc, char * argv[] ) { 6 BENCH_START() 5 int main(int argc, char* argv[]) { 7 6 BENCH( 8 for (size_t i = 0; i < times; i++) {7 for (size_t i = 0; i < n; i++) { 9 8 Fibre::yield(); 10 9 }, 11 10 result 12 11 ) 13 printf( "%g\n", result ); 12 printf("%g\n", result); 13 return 0; 14 14 } 15 16 // Local Variables: //17 // tab-width: 4 //18 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.