Skip to content

Commit

Permalink
Changed TimeCheck log to show 'ms' unit
Browse files Browse the repository at this point in the history
  • Loading branch information
zelon committed Dec 13, 2014
1 parent 3a734f3 commit d76230e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZViewer/commonSrc/CommonFunc.h
Expand Up @@ -109,7 +109,7 @@ void SplitPath(const TCHAR * path, TCHAR * drive, size_t driveNumberOfElements,

#ifdef _DEBUG
#define TIMECHECK_START(szMsg) std::chrono::system_clock::time_point dwStart___ = std::chrono::system_clock::now(); TCHAR szTimeCheckMsg___[] = TEXT(szMsg);
#define TIMECHECK_END() long long dwDiff___ = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - dwStart___).count(); DebugPrintf(TEXT("--- %s - time(%d)"), szTimeCheckMsg___, dwDiff___);
#define TIMECHECK_END() long long dwDiff___ = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - dwStart___).count(); DebugPrintf(TEXT("--- %s - time(%d ms)"), szTimeCheckMsg___, dwDiff___);
#else
#define TIMECHECK_START(szMsg) ;
#define TIMECHECK_END() ;
Expand Down

0 comments on commit d76230e

Please sign in to comment.