diff --git a/examples/bench_10/main.c b/examples/bench_10/main.c new file mode 100644 index 0000000000000000000000000000000000000000..1efc062fa15353317366cdeeab9f4435b576f220 --- /dev/null +++ b/examples/bench_10/main.c @@ -0,0 +1,50 @@ +#include +#include "../../reowolf.h" +#include "../utility.c" +int main(int argc, char** argv) { + int i, inside, total; + inside = atoi(argv[1]); + total = atoi(argv[2]); + printf("inside %d, total %d\n", inside, total); + unsigned char pdl[] = ""; + Arc_ProtocolDescription * pd = protocol_description_parse(pdl, sizeof(pdl)-1); + printf("Error str `%s`\n", reowolf_error_peek(NULL)); + char logpath[] = "./bench_10.txt"; + Connector * c = connector_new_logging(pd, logpath, sizeof(logpath)-1); + + PortId native_putter, native_getter; + char ident[] = "sync"; // defined in reowolf's stdlib + connector_add_port_pair(c, &native_putter, &native_getter); + for (i=0; i