#include <stdio.h>
#include <thread>

#include "bench.h"

volatile bool done = false;

thread Fibre {};

void main(Fibre & this) {
	while(!done) {
		yield();
	}
}

int main(int argc, char* argv[]) {
	Fibre f1;
  	BENCH(
		for (size_t i = 0; i < n; i++) {
			yield();
		},
		result
	)

	printf("%llu\n", result);
	done = true;
	return 0;
}