7 static CGUIToast* g_pToast;
8 static Base::CPerformanceCounter g_performanceCounter;
10 static inline void BeginWaitingMode(
const wchar_t* pWcsMessage =
nullptr)
12 CGUIManager::BeginWaitCursor();
18 g_pToast =
new CGUIToast(L
"Processing....");
20 g_pToast =
new CGUIToast(pWcsMessage);
23 static inline void BeginProcessing()
25 g_performanceCounter.Clear();
26 g_performanceCounter.Start();
29 static inline double GetEndProcessingTime()
33 if(g_performanceCounter.GetCheckPointCount())
34 f64Time = g_performanceCounter.GetCheckPointInMilliSecond();
39 static inline double EndProcessing()
41 g_performanceCounter.CheckPoint();
42 return GetEndProcessingTime();
45 static inline void EndWaitingMode()
53 CGUIManager::EndWaitCursor();
56 static inline const CResult SetResultMessage(
CGUIMenuItemProperty* pProperty,
const CResult resThis,
const wchar_t* pWcsAdditionalMessage =
nullptr,
bool bDisplayEndProcessingTime =
true)
62 Base::CFLString<wchar_t> strMessage;
64 if(pWcsAdditionalMessage)
66 if(bDisplayEndProcessingTime)
67 strMessage.AppendFormat(L
"%s [%.03lfms] %s", resThis.GetString(), GetEndProcessingTime(), pWcsAdditionalMessage);
69 strMessage.AppendFormat(L
"%s %s", resThis.GetString(), pWcsAdditionalMessage);
73 if(bDisplayEndProcessingTime)
74 strMessage.AppendFormat(L
"%s [%.03lfms]", resThis.GetString(), GetEndProcessingTime());
76 strMessage.AppendFormat(L
"%s", resThis.GetString());
79 res = pProperty->SetStatusMessage(strMessage);
Definition D2DObject.h:12
@ EResult_NullPointer
비어있는 포인터
Definition ResultsDef.h:145