elapsedtime
常見例句
- The amount a sprite moves in any given update can then be calculated as the rate of the sprite times ElapsedTime.
在任何更新中賦予精靈的運動總數(shù)之后被以精靈的占時次數(shù)比值計算。 - Instead of having to call Update several times to catch up, we can just call it once with a large ElapsedTime value.
不再需要調(diào)用Update函數(shù)多次來追趕時間,而是在更大的時間間隔中進行循環(huán)。 - For example, counters of the type ElapsedTime compare the time stamp on two different samples and determine how much time has elapsed.
例如,ElapsedTime類型的計數(shù)器通過比較兩個不同樣本上的時間戳,來確定已經(jīng)過了多長時間。 - If the game is programmed well, it may be able to handle that more efficiently than if Update was called several times with a smaller ElapsedTime.
如果這個游戲被良好的編程,它也許能夠比不停得追趕運行得更高效。 - ElapsedTime et = new ElapsedTime(); int days = et.getDays(gc1, gc2); int months = et.getMonths(gc1, gc2); System.out.println("Days ="+ days); System.out.println("Months ="+ months);
當計算時,上面的程序可能有用,例如,最近的航班。它顯示下面的輸出: 返回 elapsedtime