0.01 Second Stopwatch

Discussion in 'Plugin Requests' started by Sayper, Mar 24, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    Sayper

    Plugin category: Stopwatch

    Minecraft version: 1.8.9 (1.8 is ok)

    Suggested name: blank

    What I want: I want stopwatch that can count 0.01 second (1/100 second).

    Ideas for commands: No idea

    Ideas for permissions: No idea (idk about making plugins)

    When I'd like it by: As soon as possible.
     
    Last edited: Mar 24, 2018
  2. Offline

    timtower Administrator Administrator Moderator

    @Sayper And how would you use it? And you are stuck with the 20 ticks per second limit.
     
  3. @Sayper You can also try and make your own custom Thread Manager (With repeating and delay functions) and that it disables after you reload the plugin.
    And then you can create custom timed Timers, But it will cost some time.
     
  4. Offline

    timtower Administrator Administrator Moderator

    It is plugin requests, not plugin development.
    And then you are still stuck with the server tick rate.
     
  5. How?. Because if you make a Runnable/Thread on the plugin load which runs a permanent while loop.
    That you can register Custom Runnables That creates a temporarily Thread for each of them.
    Than you can trigger them with the given Delay/Interval. And if the server stops/reload you can stop all the Custom Running Threads on the Manager Class.
     
  6. Offline

    timtower Administrator Administrator Moderator

    @DanielTheDev But the sync things are being handled in the server thread.
    But there is no need to worry about any of this without a way to start or stop it.
     
  7. Offline

    MightyOne

    Well I guess it doesn't make a lot of sense to answer anymore but @Sayper how should this stopwatch get displayed? You didn't say anything about how this stopwatch should be usable.
     
  8. Could you not use System.currentTimeMillis() to just get two timestamps and get the difference between them?
     
  9. Offline

    timtower Administrator Administrator Moderator

    You could, but when will you call that? After a command? Chat? Event?
    All off those are handled with server ticks as far as I know.
     
Thread Status:
Not open for further replies.

Share This Page