Decreasing Spigot Timings

Discussion in 'Spigot Plugin Development' started by HoloGraphix-, Jun 15, 2015.

  1. Hi guys,

    I'm currently experiencing high spigot timings (Pct Tick), I guess it's because I'm requesting the current time when someone logs out:

    Code (Text):
            Date date= new Date();
            long time = date.getTime();
            Timestamp ts = new Timestamp(time);
            String timeStamp = ts.toString();
    Is there a way to do this without that much lag? Thanks in advance.

    Also one more question: Is requesting online UUID's taking much effort?
     
  2. I don't know if it'll reduce lag, but you can put this all into one statement.
    Code (Text):
    String timeStamp = new Timestamp(new Date().getTime()).toString();
     
  3. JamesJ

    Supporter

    What is causing the lag?
    Should say in your timings.