Files
HLStock/CheckServer/GlobalHelper.cpp
2013-07-20 23:25:42 +00:00

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