package skadistats.clarity.examples.entityrun;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import skadistats.clarity.processor.entities.UsesEntities;
import skadistats.clarity.processor.runner.SimpleRunner;
import skadistats.clarity.source.MappedFileSource;

@UsesEntities
public class Main {

    private final Logger log = LoggerFactory.getLogger(Main.class.getPackage().getClass());

    public void run(String[] args) throws Exception {
        long tStart = System.currentTimeMillis();
        new SimpleRunner(new MappedFileSource(args[0])).runWith(this);
        long tMatch = System.currentTimeMillis() - tStart;
        log.info("total time taken: {}s", (tMatch) / 1000.0);
    }

    public static void main(String[] args) throws Exception {
        try {
            //BitStreamImplementations.implementation = 1;
            System.out.println("press key to start"); System.in.read();
            new Main().run(args);
        } catch (Exception e) {
            Thread.sleep(200);
            throw e;
        }
    }

}

package skadistats.clarity.examples.entityrun;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import skadistats.clarity.processor.entities.UsesEntities;
import skadistats.clarity.processor.reader.OnMessage;
import skadistats.clarity.processor.runner.Context;
import skadistats.clarity.processor.runner.SimpleRunner;
import skadistats.clarity.source.MappedFileSource;
import skadistats.clarity.wire.s2.proto.S2DotaGcCommon;
import skadistats.clarity.wire.s2.proto.S2DotaMatchMetadata;

@UsesEntities
public class Main {

    private final Logger log = LoggerFactory.getLogger(Main.class.getPackage().getClass());

    public void run(String[] args) throws Exception {
        long tStart = System.currentTimeMillis();
        new SimpleRunner(new MappedFileSource(args[0])).runWith(this);
        long tMatch = System.currentTimeMillis() - tStart;
        log.info("total time taken: {}s", (tMatch) / 1000.0);
    }

    public static void main(String[] args) throws Exception {
        try {
            //BitStreamImplementations.implementation = 1;
            //System.out.println("press key to start"); System.in.read();
            new Main().run(args);
        } catch (Exception e) {
            Thread.sleep(200);
            throw e;
        }
    }

}

remove waiting for keypress on matchend example