38 lines
812 B
C++
38 lines
812 B
C++
// 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;
|
|
}
|