|
|
|
@ -153,8 +153,8 @@ object BleService { |
|
|
|
val currentTime = System.currentTimeMillis() |
|
|
|
val timeDiff = currentTime - lastStatisticsTime |
|
|
|
if (timeDiff >= 1000) { // 每秒统计一次 |
|
|
|
Log.i(TAG, "每秒接收音频数据: $bytesReceivedInCurrentSecond 字节") |
|
|
|
Log.i(TAG, "每秒发送音频数据: $bytesSentInCurrentSecond 字节") |
|
|
|
// Log.i(TAG, "每秒接收音频数据: $bytesReceivedInCurrentSecond 字节") |
|
|
|
// Log.i(TAG, "每秒发送音频数据: $bytesSentInCurrentSecond 字节") |
|
|
|
bytesReceivedInCurrentSecond = 0 |
|
|
|
bytesSentInCurrentSecond = 0 |
|
|
|
lastStatisticsTime = currentTime |
|
|
|
|