Sent elapsed time

pull/184/head
M66B 4 years ago
parent d497aa4e02
commit 3b891df11e

@ -604,9 +604,10 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
// Send message // Send message
EntityLog.log(this, "Sending " + via); EntityLog.log(this, "Sending " + via);
long start = new Date().getTime();
iservice.getTransport().sendMessage(imessage, to); iservice.getTransport().sendMessage(imessage, to);
long time = new Date().getTime(); long end = new Date().getTime();
EntityLog.log(this, "Sent " + via); EntityLog.log(this, "Sent " + via + " elapse=" + (end - start) + " ms");
try { try {
db.beginTransaction(); db.beginTransaction();
@ -616,8 +617,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
// Show in sent folder // Show in sent folder
if (sid != null) { if (sid != null) {
db.message().setMessageSent(sid, time); db.message().setMessageReceived(sid, start);
db.message().setMessageReceived(sid, time); db.message().setMessageSent(sid, end);
db.message().setMessageUiHide(sid, false); db.message().setMessageUiHide(sid, false);
} }

Loading…
Cancel
Save