ovni/test_speed.c
Rodrigo Arias Mallo 60862db890 Store CPU list in a metadata.json file
This allows early access to the CPU list in order to emit the PRV header
before consuming events from the streams.
2021-08-03 17:48:37 +02:00

31 lines
374 B
C

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