1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to make simple timer?

Discussion in 'Help' started by Gasaaas, Sep 14, 2019.

  1. Gasaaas

    Gasaaas Spider

    Messages:
    6
    How I can create a simple timer? Without tasks?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    What do you need the timer for?
    For a cooldown you can save the time somewhere and compare it, for a timer that ticks you will need a task.
     
  3. Gasaaas

    Gasaaas Spider

    Messages:
    6
    Cooldown
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Store the result of microtime(true) and compare it to the current one whenever the thing that has a cooldown is called.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.