From f825f94c9a7544ea781502e79050683e49cd5bba Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 3 Feb 2021 14:25:08 +0100 Subject: [PATCH] cld3 elapse --- app/src/main/java/eu/faircode/email/TextHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/TextHelper.java b/app/src/main/java/eu/faircode/email/TextHelper.java index 3058e238bd..319c8d2f9e 100644 --- a/app/src/main/java/eu/faircode/email/TextHelper.java +++ b/app/src/main/java/eu/faircode/email/TextHelper.java @@ -65,9 +65,11 @@ public class TextHelper { System.arraycopy(octets, 0, sample, 0, MAX_SAMPLE_SIZE); } + long start = new Date().getTime(); Log.i("cld3 sample=" + sample.length); DetectResult result = jni_detect_language(sample); - Log.i("Language=" + result); + long elapse = new Date().getTime() - start; + Log.i("cld3 language=" + result + " elapse=" + elapse); if (result.probability < MIN_PROBABILITY) return null;