2011-03-30 11 views
0
에 타이머를 표시

내 코드 :(밀리 초)

myTextBox.text = count1.currentCount.toString(); 

어떻게 내가 밀리 초 단위로 현재 카운트를 표시 할 것인가?

답변

2

당신은 1000 만 곱셈, 밀리 초에 currentCount 변환하고자하는 경우 :

var currentMilliseconds = count1.currentCount * 1000; 

은 간단히 말해, 1 초 1000 밀리 초입니다. 그래서, 변환 :

milliseconds = seconds * 1000; 
seconds = milliseconds * 0.001; 

를 귀하의 경우 : 그냥 텍스트 상자에 개체 타이머를 분석

myTextBox.text = String(count1.currentCount * 1000); 
+0

를? – DIM3NSION

+0

죄송합니다 count1.currentCount를 밀리 초로 변환 하시겠습니까? – Feltope

+0

예 가능한 경우 – DIM3NSION