- cpu = time.clock()
- cpuL = int(cpu) - self._StartUsed
- print "SALOME_ComponentPy_i::CpuUsed_impl ",cpuL,type(cpuL)
- return cpuL
+ if ( self._ThreadId | self._Executed ) :
+ if self._ThreadId == get_ident() :
+ cpu = time.clock()
+ self._ThreadCpuUsed = cpu - self._StartUsed
+ MESSAGE( "SALOME_ComponentPy_i::CpuUsed_impl " + self._serviceName + " " + str( int(cpu) ) + " - " + str( self._StartUsed ) + " = " + str( self._ThreadCpuUsed ) )
+ return self._ThreadCpuUsed
+ MESSAGE( "SALOME_ComponentPy_i::CpuUsed_impl " + self._serviceName + " " + str( self._ThreadCpuUsed ) )
+ return self._ThreadCpuUsed
+ MESSAGE( "SALOME_ComponentPy_i::CpuUsed_impl self._StartUsed " + self._serviceName + " " + str(self._StartUsed) )
+ return 0
+
+ #-------------------------------------------------------------------------
+
+ def DumpPython(self, theStudy, isPublished, isMultiFile):
+ aBuffer = "\0"
+ if isMultiFile :
+ aBuffer = "def RebuildData(theStudy): pass\n\0"
+ return (aBuffer, 1)
+
+ #-------------------------------------------------------------------------
+
+ def getStudyId(self):
+ return self._studyId
+
+ #-------------------------------------------------------------------------
+
+ def hasObjectInfo(self):
+ return 0
+
+ #-------------------------------------------------------------------------
+
+ def getObjectInfo(self, studyId, entry):
+ return ""
+
+ #-------------------------------------------------------------------------
+
+ def getVersion(self):
+ return "" # empty string means "unknown" version