Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.util.Log;

public class Main {
    public static void latencyLog(String data) {
        data = data.substring(data.indexOf("time-") + 5);
        long started = Long.parseLong(data);
        long current = System.currentTimeMillis();
        Log.i("Latency", String.valueOf(current - started));

    }
}