Add speed test

This commit is contained in:
Rodrigo Arias 2021-07-22 12:36:02 +02:00
parent 557c75cf12
commit f8e4c0a0a4

26
test_speed.c Normal file
View File

@ -0,0 +1,26 @@
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include "ovni.h"
#define N 1000
int main()
{
int i;
ovni_proc_init(0, 0);
ovni_thread_init(1);
for(i=0; i<N; i++)
{
ovni_clock_update();
ovni_thread_ev('B', '.', 0, 0);
}
ovni_thread_flush();
return 0;
}