source:
benchmark/ctxswitch/upp_thrd.cc
@
4ef08f7
Last change on this file since 4ef08f7 was b4107c8, checked in by , 5 years ago | |
---|---|
|
|
File size: 263 bytes |
Rev | Line | |
---|---|---|
[b7170a64] | 1 | #include <cstdio> |
2 | ||
3 | #include "bench.h" | |
4 | ||
[b4107c8] | 5 | int main( int argc, char * argv[] ) { |
6 | BENCH_START() | |
[b7170a64] | 7 | BENCH( |
[b4107c8] | 8 | for (size_t i = 0; i < times; i++) { |
[b7170a64] | 9 | uThisTask().yield(); |
10 | }, | |
11 | result | |
12 | ) | |
[b4107c8] | 13 | printf( "%g\n", result ); |
[dc33b5b] | 14 | } |
[b4107c8] | 15 | |
16 | // Local Variables: // | |
17 | // tab-width: 4 // | |
18 | // End: // |
Note: See TracBrowser
for help on using the repository browser.