File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
pisi/unitedmeows/eventapi/event/listener Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ public void call(Event event) {
27
27
}
28
28
}
29
29
30
- pisi .unitedmeows .meowlib . async .Async .await (pisi . unitedmeows . meowlib . async . Async . async ( f -> {
30
+ pisi .unitedmeows .yystal . parallel .Async .await (() -> {
31
31
this .function .call ((X ) event );
32
- })) ;
32
+ });
33
33
}
34
34
}
35
35
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public void call(Event event) {
26
26
}
27
27
}
28
28
29
- pisi .unitedmeows .meowlib . async .Async .async (f -> {
29
+ pisi .unitedmeows .yystal . parallel .Async .async (() -> {
30
30
this .function .call ((X ) event );
31
31
});
32
32
}
Original file line number Diff line number Diff line change 1
1
package test ;
2
2
3
3
import pisi .unitedmeows .eventapi .event .Event ;
4
- import pisi .unitedmeows .eventapi .event .IFunction ;
5
4
import pisi .unitedmeows .eventapi .event .listener .Listener ;
6
5
import pisi .unitedmeows .eventapi .system .BasicEventSystem ;
7
- import pisi .unitedmeows .meowlib .async .Async ;
8
- import pisi .unitedmeows .meowlib .thread .kThread ;
9
6
10
- import java .util .Random ;
7
+ import java .util .HashMap ;
11
8
12
9
public class PisiTest {
13
10
@@ -35,6 +32,7 @@ public static void main(String[] args) {
35
32
for (int i = 1000000 ; i > 0 ; i --) {
36
33
basicEventSystem .fire (new PisiTestEvent ());
37
34
}
35
+ System .out .print ("1M call took " );
38
36
stopWatcher ();
39
37
40
38
}
@@ -47,7 +45,7 @@ public static void startWatcher() {
47
45
48
46
public static void stopWatcher () {
49
47
long lastTime = System .currentTimeMillis ();
50
- System .out .println (lastTime - time + " ms took " );
48
+ System .out .println (lastTime - time + "ms " );
51
49
}
52
50
53
51
}
You can’t perform that action at this time.
0 commit comments