elapsedtime
基本解释
- n.经过的时间
英汉例句
- The amount a sprite moves in any given update can then be calculated as the rate of the sprite times ElapsedTime.
在任何更新中赋予精灵的运动总数之后被以精灵的占时次数比值计算。 - Instead of having to call Update several times to catch up, we can just call it once with a large ElapsedTime value.
不再需要调用Update函数多次来追赶时间,而是在更大的时间间隔中进行循环。 - For example, counters of the type ElapsedTime compare the time stamp on two different samples and determine how much time has elapsed.
例如,ElapsedTime类型的计数器通过比较两个不同样本上的时间戳,来确定已经过了多长时间。 - 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);
当计算时,上面的程序可能有用,例如,最近的航班。它显示下面的输出: