java - How to execute a block of code with 1 second intervals? -


i need execute block every 1 second, needs in same thread. means, understand, can't make use of timer class.

is there way want?

create thread , write loop -

while(true) {     //     thread.sleep(1000); } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -