I write a code to get localhost cpu used rate.and it succeed! Now i want to get 60 seconds cpu status and display use Jfreecharts. I don't know how to get data in 60seconds. Ask for your help,thank you.
Asked
Active
Viewed 31 times
0
-
1Use a timer, either `java.util.Timer` or `java.swing.Timer` depending on context. – Catalina Island Apr 18 '18 at 16:13
-
Possible duplicate of [*Using JFreeChart to display recent changes in a time series*](https://stackoverflow.com/q/5048852/230513), [_et al_](https://stackoverflow.com/search?tab=votes&q=%5bjfreechart%5d%20javax.swing.Timer). – trashgod Apr 18 '18 at 17:14