Exemplo n.º 1
0
  /**
   * Entry point of the demo application.
   *
   * @param args command line arguments
   */
  public static void main(String[] args) {
    // Starts the sampler
    Sampler sampler = new Sampler();
    sampler.setDaemon(true);
    sampler.start();

    // Starts the measuring
    while (true) {
      try (Split ignored = SimonManager.getStopwatch("sampled-stopwatch").start()) {
        ExampleUtils.waitRandomlySquared(50);
      }
    }
  }