Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New: MSG_host_get_pstate() and smpi_get_host_pstate()
[simgrid.git] / src / bindings / java / org / simgrid / surf / Cpu.java
index 3ddad07..0fec4c4 100644 (file)
@@ -162,6 +162,10 @@ public class Cpu extends Resource {
     SurfJNI.Cpu_setPstate(swigCPtr, this, pstate_index);
   }
 
+  public int getPstate() {
+    return SurfJNI.Cpu_getPstate(swigCPtr, this);
+  }
+
   
   /**
     * @param state The new state of the cpu