All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.miv.mbox.Test Maven / Gradle / Ivy

Go to download

The message box acts as a buffer for incoming messages. Its major property is to be usable from any thread. This allows any external source to post any message at any time without having to wonder about synchronisation.

The newest version!
package org.miv.mbox;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class Test
{
	public static void main( String args[] )
	{
		try
		{
			new Test();
		}
		catch( Exception e )
		{
			e.printStackTrace();
		}
	}
	
	public Test() throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
	{
		long t1, t2;
		float T1, T2;
		int  N = 100000;
		
		t1 = System.nanoTime();
		
		for( int i=0; i c = getClass();
		Method m = c.getMethod( "truc" );
	
		t1 = System.nanoTime();
		
		for( int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy