ovni/test_speed.c

31 lines
366 B
C
Raw Normal View History

2021-07-22 12:36:02 +02:00
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <linux/limits.h>
2021-07-22 12:36:02 +02:00
#include "ovni.h"
#define N 100000
2021-07-22 12:36:02 +02:00
int main()
{
struct ovni_ev ev = {0};
2021-07-22 12:36:02 +02:00
int i;
ovni_proc_init(0, 0);
ovni_thread_init(1);
ovni_ev_set_mcv(&ev, "OB.");
2021-07-22 12:36:02 +02:00
for(i=0; i<N; i++)
{
ovni_clock_update();
ovni_ev(&ev);
2021-07-22 12:36:02 +02:00
}
ovni_flush();
2021-07-22 12:36:02 +02:00
return 0;
}