All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.TimeOut Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
package com.spun.util;

import com.spun.util.logger.SimpleLogger;

public final class TimeOut implements Runnable
{
  private long time;
  public TimeOut(long time)
  {
    this.time = time;
    new Thread(this).start();
  }
  public void run()
  {
    SimpleLogger.event("launched");
    try
    {
      Thread.sleep(time);
    }
    catch (InterruptedException e)
    {
      SimpleLogger.warning(e);
    }
    System.exit(0);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy