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;
        }
    }

}

@@ -198,77 +198,300 @@
 or.r
-unner.SimpleRunner;%0Aimport skadistats.clarity.source.MappedFileSource
+eader.OnMessage;%0Aimport skadistats.clarity.processor.runner.Context;%0Aimport skadistats.clarity.processor.runner.SimpleRunner;%0Aimport skadistats.clarity.source.MappedFileSource;%0Aimport skadistats.clarity.wire.s2.proto.S2DotaGcCommon;%0Aimport skadistats.clarity.wire.s2.proto.S2DotaMatchMetadata
 ;%0A%0A@
@@ -1067,16 +1067,18 @@
         
+//
 System.o

remove waiting for keypress on matchend example