#include <libfibre/fibre.h>

#include "bench.h"

volatile bool done = false;

static void f1main() {
	while(!done) {
		Fibre::yield();
	}
}

int main( int argc, char * argv[] ) {
	BENCH_START()
	Fibre* f1 = (new Fibre)->run(f1main);
  	BENCH(
		for (size_t i = 0; i < times; i++) {
			Fibre::yield();
		},
		result
	)
	printf( "%g\n", result );
	done = true;
	Fibre::yield();
	f1->join();
}

// Local Variables: //
// tab-width: 4 //
// End: //
