/*
 * Created on Sep 6, 2004
 */
package net.starmen.pkhack.eb;

import net.starmen.pkhack.AbstractRom;
import net.starmen.pkhack.Stopwatch;
import net.starmen.pkhack.XMLPreferences;

/**
 * TODO Write javadoc for this class
 * @author AnyoneEB
 */
public class DecompTest extends EbHackModule
{
    public DecompTest(AbstractRom rom, XMLPreferences prefs)
    {
        super(rom, prefs);
    }

    protected void init()
    {
    }

    public String getVersion()
    {
        return "0.0";
    }

    public String getDescription()
    {
        return "Decomp Speed Test";
    }

    public String getCredits()
    {
        return "Written by AnyoneEB";
    }

    public void hide()
    {
    }

    public void show()
    {
        Stopwatch j = new Stopwatch(), c = new Stopwatch();
        
        j.start();
        byte[] buffer = new byte[8192];
        EbHackModule.decomp(0x2023a8, buffer, rom);
        j.stop();
        
        c.start();
        c.stop();
    }
    
    public static native int[] ndecomp(); //DEBUG
}
