You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitlib.pub/MITLIB/GuiDLL/HrMinSecFormat.h

39 lines
1.0 KiB
C++

// HrMinSecFormat.h: interface for the CHrMinSecFormat class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HRMINSECFORMAT_H__F1AB38F3_E941_44BB_B4FE_2BF086198E0E__INCLUDED_)
#define AFX_HRMINSECFORMAT_H__F1AB38F3_E941_44BB_B4FE_2BF086198E0E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifdef BUILD_GUIDLL
#define DLLCLASS __declspec(dllexport)
#else
#define DLLCLASS __declspec(dllimport)
#endif
class DLLCLASS CHrMinSecFormat
{
public:
// default constructor
CHrMinSecFormat();
// default destructor
virtual ~CHrMinSecFormat();
// Get hours:Mins:Secs format string
static CString GetHrMinSecFormat(long double dSec);
// Get hours:Mins:Secs.Msec format string
static CString GetHrMinFloatSecFormat(long double dSec);
private:
static const int SEC_IN_HOUR; // 60 min * 60 sec
static const int SEC_IN_MIN; // 60 sec
};
#endif // !defined(AFX_HRMINSECFORMAT_H__F1AB38F3_E941_44BB_B4FE_2BF086198E0E__INCLUDED_)