mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
test
This commit is contained in:
+7
-1
@@ -471,7 +471,13 @@ object ChatController {
|
||||
|
||||
return withContext(Dispatchers.IO) {
|
||||
val c = cmd.cmdString
|
||||
chatModel.addTerminalItem(TerminalItem.cmd(rhId, cmd.obfuscated))
|
||||
|
||||
repeat(100) {
|
||||
val start = System.nanoTime()
|
||||
chatModel.addTerminalItem(TerminalItem.cmd(rhId, cmd.obfuscated))
|
||||
println("LALAL diff ${System.nanoTime() - start}")
|
||||
}
|
||||
|
||||
Log.d(TAG, "sendCmd: ${cmd.cmdType}")
|
||||
val json = if (rhId == null) chatSendCmd(ctrl, c) else chatSendRemoteCmd(ctrl, rhId.toInt(), c)
|
||||
val r = APIResponse.decodeStr(json)
|
||||
|
||||
Reference in New Issue
Block a user