Skip to content

Commit 61ade01

Browse files
committed
alias perf_counter to clock
1 parent d907cf7 commit 61ade01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/TimeModuleBuiltins.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ public double time() {
189189
}
190190
}
191191

192+
@Builtin(name = "perf_counter", minNumOfPositionalArgs = 0)
193+
@GenerateNodeFactory
194+
public abstract static class PythonPerfCounterNode extends PythonClockNode {
195+
}
196+
192197
// time.clock()
193198
@Builtin(name = "clock", minNumOfPositionalArgs = 0)
194199
@GenerateNodeFactory

0 commit comments

Comments
 (0)