Example usage for com.badlogic.gdx.utils PerformanceCounter PerformanceCounter

List of usage examples for com.badlogic.gdx.utils PerformanceCounter PerformanceCounter

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils PerformanceCounter PerformanceCounter.

Prototype

public PerformanceCounter(final String name) 

Source Link

Usage

From source file:com.ore.infinium.World.java

License:Open Source License

private void generateWorld() {
    PerformanceCounter counter = new PerformanceCounter("test");
    counter.start();/* w w  w .  j a v a2  s. c  o  m*/

    generateOres();
    generateGrassTiles();
    transitionTiles();

    counter.stop();
    String s = String.format("total world gen took (incl transitioning, etc): %s seconds", counter.current);
    Gdx.app.log("", s);

}