This commit is contained in:
2013-07-20 23:25:42 +00:00
parent e22f9dabcc
commit a67eb4e936

View 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;
}