ScheduledExecutorService可以准确到毫秒吗
时间: 2023-10-17 09:25:55 浏览: 75
根据引用,ScheduledExecutorService 定时方式的最大执行间隔时间为52毫秒。这意味着在使用ScheduledExecutorService时,可以准确到毫秒级别进行定时操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ScheduledExecutorService和while(true) sleep 两种定时方式的定时间隔准确度比较](https://blog.csdn.net/weixin_41247508/article/details/120204901)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [System.currentTimeMillis的性能真有如此不堪吗?](https://blog.csdn.net/weixin_36380516/article/details/118981186)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文