stopwatch:使用 java 8 的小型秒表库

时间:2021-06-03 01:31:19
【文件属性】:
文件名称:stopwatch:使用 java 8 的小型秒表库
文件大小:24KB
文件格式:ZIP
更新时间:2021-06-03 01:31:19
Java 跑表 使用 java 8 的小型秒表库 两种类型:毫秒、纳秒 支持迭代,多测试 用法 使用对静态方法的引用 public class StopwatchTest { @Test public static void delay500ms () { // test user-defined static method long delay = Stopwatch . task( StopwatchTest :: delay500ms) . mili() . time(); long delay10 = Stopwatch . task( StopwatchTest :: delay500ms, 10 ) . mili() . time(); // test method using iteration long delay100 = Stopwatch
【文件预览】:
stopwatch-master
----bin()
--------.gitignore(6B)
----test()
--------com()
----LICENSE(11KB)
----stopwatch.jar(14KB)
----.settings()
--------org.eclipse.jdt.core.prefs(587B)
----src()
--------com()
----.project(368B)
----.classpath(414B)
----README.md(2KB)

网友评论