The first section of code below shows how to set up a simple password entry and confirmation program that takes into account the full timing of password entry.
下列代码的第一部分将展示一个简单的密码输入和确认程序,它将计算输入密码的完整时间。
I also wrote a similar timing test program for creating objects using reflection. The differences for this case aren't nearly as significant as for the field and method call cases, though.
我还为创建使用反射的对象编写了类似的计时测试程序,但这种情况下的差异不象字段和方法调用情况下那么显著。
When the application makes an intensive use of timing functions, a more efficient implementation of the timing routines can improve the overall performance of the program.
当应用程序深入使用这些时间函数时,更有效地使用这些与时间有关的函数,可以改进程序的整体性能。
应用推荐