Add speed test
This commit is contained in:
		
							parent
							
								
									557c75cf12
								
							
						
					
					
						commit
						f8e4c0a0a4
					
				
							
								
								
									
										26
									
								
								test_speed.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								test_speed.c
									
									
									
									
									
										Normal 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; | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user