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