File tree 1 file changed +4
-4
lines changed
truffle/src/main/java/org/jruby/truffle/nodes/core
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,23 +44,23 @@ public ClockGetTimeNode(ClockGetTimeNode prev) {
44
44
nanosecondSymbol = prev .nanosecondSymbol ;
45
45
}
46
46
47
- @ Specialization (guards = "isMonotonic(arguments[0] )" )
47
+ @ Specialization (guards = "isMonotonic(clock_id )" )
48
48
Object clock_gettime_monotonic (int clock_id , UndefinedPlaceholder unit ) {
49
49
return clock_gettime_monotonic (CLOCK_MONOTONIC , floatSecondSymbol );
50
50
}
51
51
52
- @ Specialization (guards = "isRealtime(arguments[0] )" )
52
+ @ Specialization (guards = "isRealtime(clock_id )" )
53
53
Object clock_gettime_realtime (int clock_id , UndefinedPlaceholder unit ) {
54
54
return clock_gettime_realtime (CLOCK_REALTIME , floatSecondSymbol );
55
55
}
56
56
57
- @ Specialization (guards = "isMonotonic(arguments[0] )" )
57
+ @ Specialization (guards = "isMonotonic(clock_id )" )
58
58
Object clock_gettime_monotonic (int clock_id , RubySymbol unit ) {
59
59
long time = System .nanoTime ();
60
60
return timeToUnit (time , unit );
61
61
}
62
62
63
- @ Specialization (guards = "isRealtime(arguments[0] )" )
63
+ @ Specialization (guards = "isRealtime(clock_id )" )
64
64
Object clock_gettime_realtime (int clock_id , RubySymbol unit ) {
65
65
long time = System .currentTimeMillis () * 1000000 ;
66
66
return timeToUnit (time , unit );
You can’t perform that action at this time.
0 commit comments