Index: gc_lang/fr/oxt/TextFormatter/TextFormatter.py ================================================================== --- gc_lang/fr/oxt/TextFormatter/TextFormatter.py +++ gc_lang/fr/oxt/TextFormatter/TextFormatter.py @@ -416,11 +416,11 @@ self.bapply.TextColor = 0x440000 self.xContainer.setVisible(True) def _replaceAll (self, xElem): try: - nStartTime = time.clock() + nStartTime = time.perf_counter() self.xContainer.setVisible(True) # change pointer xPointer = self.ctx.ServiceManager.createInstanceWithContext("com.sun.star.awt.Pointer", self.ctx) xPointer.setType(uno.getConstantByName("com.sun.star.awt.SystemPointer.WAIT")) xWindowPeer = self.xContainer.getPeer() @@ -669,11 +669,11 @@ xPointer.setType(uno.getConstantByName("com.sun.star.awt.SystemPointer.ARROW")) xWindowPeer.setPointer(xPointer) for x in xWindowPeer.Windows: x.setPointer(xPointer) self.xContainer.setVisible(True) # seems necessary to refresh the dialog box and text widgets (why?) - nEndTime = time.clock() + nEndTime = time.perf_counter() self.time_res.Label = getTimeRes(nEndTime-nStartTime) except: traceback.print_exc() def _replaceList (self, xElem, sList):