java时间差
以下代碼沒什么意義,只是記錄
long mstart = System.nanoTime();
int mIndex = 0 ;
for (int i = 0; i < 100000000; i++) {
mIndex = i ;
if ( mIndex >= 0 ){
}
}
long mend = System.nanoTime();
for (int i = 0; i < 100000000; i++) {
mIndex = i ;
if ( mIndex > -1 ){
}
}
long mend_o = System.nanoTime();
BigDecimal diff = BigDecimal.valueOf(mend-mstart,5);
BigDecimal diff_o = BigDecimal.valueOf(mend_o-mend,5);
轉載于:https://www.cnblogs.com/Wicher-lsl/p/11480486.html
總結
- 上一篇: idea安装Maven Helper
- 下一篇: tp5中在where中使用in