package com.example.hello;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.format.Time;
import android.widget.TextView;
public class NewActivity extends Activity {
private Time tm, elapsed;
long st;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_new);
TextView tv = (TextView)findViewById(R.id.textView1);
tm = new Time();
elapsed = new Time();
Intent intent = getIntent();
long[] buf = intent.getLongArrayExtra("stack");
String s = "";
for (int i=0; i<buf.length; i++) {
tm.set(buf[i]);
if (i == 0) {
st = tm.toMillis(false);
}
elapsed.set(buf[i] - st);
s = s + String.valueOf(i + 1) + tm.format(" %F %T (") + elapsed.format("%T) ") + "\n";
}
tv.setText(s);
}
}
st = tm.toMillis(false);
여기서 버퍼의 제일 처음값을 시작 시간으로 두고
elapsed.set(buf[i] - st);
여기서 그뒤의 값과의 차를 elapsed라는 객체에 set 한뒤
출력을 시키는데요

결과가 이렇게 나옵니다
뭐가 잘못된걸까요ㅠ