From e107d47385a82b7ddd15423d746b27cb2dd74781 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 2 Aug 2019 15:50:18 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt index 1729ed97f..a7cd9c5e7 100644 --- a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt +++ b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt @@ -20,7 +20,7 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { @SuppressLint("ConstantLocale") private val DEBUG_TIME_FORMAT = SimpleDateFormat("[mm:ss.SSS]", Locale.getDefault()) - private val startTime: Long = System.currentTimeMillis() + private var startTime: Long = System.currentTimeMillis() @Synchronized fun printLog( @@ -60,6 +60,7 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { fun startDebug(key: String) { cancelDebug() + startTime = System.currentTimeMillis() with(webBook) { if (key.isAbsUrl()) { val book = Book()