Markus
Markus

Reputation: 1482

Get remaining delay time of a Task in libgdx

How do I get the remaining delay time of a Task that has been scheduled?

Let's say I schedule my Task like this:

Timer.schedule(myTask, 10);

How Do I get the remaining delay time before the Task is scheduled without counting the time myself?

Upvotes: 1

Views: 230

Answers (1)

djechlin
djechlin

Reputation: 60768

You have getExecuteTimeMillis which you can compare to System.currentTimeMillis.

Source

Upvotes: 1

Related Questions