We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1a936 commit 6ecefb5Copy full SHA for 6ecefb5
mobile/examples/phi-3/android/app/src/main/java/ai/onnxruntime/genai/demo/MainActivity.java
@@ -155,8 +155,7 @@ public void run() {
155
156
// Token listener for streaming tokens
157
Consumer<String> tokenListener = token -> {
158
- if (numTokens.get() == 0) { // first token
159
- firstTokenTime.set(System.currentTimeMillis());
+ firstTokenTime.compareAndSet(startTime, System.currentTimeMillis());
160
}
161
162
// Update UI with new token
0 commit comments