From 0fc8934d930cc9f9d9adb8be23dbdbbee131061f Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Thu, 16 Aug 2012 18:22:10 +0200 Subject: [PATCH] ewol change his time API --- Sources/appl/Buffer/BufferText.cpp | 6 +++--- Sources/appl/Gui/CodeView.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/appl/Buffer/BufferText.cpp b/Sources/appl/Buffer/BufferText.cpp index 6342b5a..42b3726 100644 --- a/Sources/appl/Buffer/BufferText.cpp +++ b/Sources/appl/Buffer/BufferText.cpp @@ -329,13 +329,13 @@ int32_t BufferText::Display(ewol::OObject2DTextColored& OOTextNormal, OOColored.SetColor(ColorizeManager::Get(COLOR_CODE_BASIC_BG)); OOColored.Rectangle( 0, 0, sizeX, sizeY); - int64_t startTime = GetCurrentTime(); + int64_t startTime = ewol::GetTime(); int displayLines = 0; // Regenerate the colorizing if necessary ... displayHLData_ts m_displayLocalSyntax; m_EdnBuf.HightlightGenerateLines(m_displayLocalSyntax, displayStartBufferPos, m_displaySize.y); - int64_t stopTime = GetCurrentTime(); + int64_t stopTime = ewol::GetTime(); APPL_DEBUG("Parsing Highlight = " << stopTime - startTime << " micro-s"); uniChar_t displayChar[MAX_EXP_CHAR_LEN]; @@ -469,7 +469,7 @@ int32_t BufferText::Display(ewol::OObject2DTextColored& OOTextNormal, } // set the maximum size for the display ... SetMaximumSize(maxSize); - int64_t stopTime2 = GetCurrentTime(); + int64_t stopTime2 = ewol::GetTime(); APPL_DEBUG("DRAW text (brut) = " << stopTime2 - stopTime << " micro-s"); return ERR_NONE; diff --git a/Sources/appl/Gui/CodeView.cpp b/Sources/appl/Gui/CodeView.cpp index 359bc1c..503a8f2 100644 --- a/Sources/appl/Gui/CodeView.cpp +++ b/Sources/appl/Gui/CodeView.cpp @@ -129,7 +129,7 @@ void CodeView::OnDraw(ewol::DrawProperty& displayProp) void CodeView::OnRegenerateDisplay(void) { if (true == NeedRedraw()) { - int64_t startTime = GetCurrentTime(); + int64_t startTime = ewol::GetTime(); // For the scrooling windows CalculateMaxSize(); @@ -164,7 +164,7 @@ void CodeView::OnRegenerateDisplay(void) // set the current size of the windows SetMaxSize(BufferManager::Get(m_bufferID)->GetMaxSize()); - int64_t stopTime = GetCurrentTime(); + int64_t stopTime = ewol::GetTime(); APPL_DEBUG("Display Code Generation = " << stopTime - startTime << " micro-s"); // call the herited class...