This site requires JavaScript, please enable it in your browser!
Greenfoot back
billxha
billxha wrote ...

2021/4/19

(ask) help me fast needed 12hours from now

billxha billxha

2021/4/19

#
How to make time timers from 600sec to 0? thank you so much
RcCookie RcCookie

2021/4/19

#
Not really sure what’s your problem. Here are some ideas:
// Current time in milliseconds (since 1.1.1971, I think)
long time = System.currentTimeMillis();

// Measure the time between two moments (in milliseconds)
long startTime = System.currentTimeMillis();
// Some operations…
long duration = System.currentTimeMillis() - startTime;

// Convert milliseconds into seconds 
double seconds = timeInNanos * 0.001;
danpost danpost

2021/4/20

#
billxha wrote...
How to make time timers from 600sec to 0? thank you so much
Please refer to my Value Display Tutorial scenario.
You need to login to post a reply.