This commit is contained in:
37
CheckServer/GlobalHelper.cpp
Normal file
37
CheckServer/GlobalHelper.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
// GlobalHelper.cpp: implementation of the GlobalHelper class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "CheckServer.h"
|
||||
#include "GlobalHelper.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
GlobalHelper::GlobalHelper()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
GlobalHelper::~GlobalHelper()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CString GlobalHelper::GetLocalTime()
|
||||
{
|
||||
CString strTime;
|
||||
static SYSTEMTIME time;
|
||||
::GetLocalTime(&time);
|
||||
|
||||
strTime.Format( "%02u:%02u:%02u:%03u", time.wHour, time.wMinute, time.wSecond, time.wMilliseconds);
|
||||
return strTime;
|
||||
}
|
||||
Reference in New Issue
Block a user