| CodeSarang.Com |
|
GetMsToMinString()등록자 : cpueblo (유광희), 2008-09-02글수정 | 글삭제
//===============================================
// GetMsToMinString
//
// ms (밀리세컨드) 를 이쁘게 분:초로 표시
//===============================================
char *GetMsToMinString(LONG ms)
{
static char szStr[1024];
LONG seconds = ms / 1000;
LONG minutes = seconds / 60;
LONG hours = minutes / 60;
sprintf(szStr, "%02d:%02d", minutes, seconds % 60);
return szStr;
}
글수정 | 글삭제 |
||||||||||||||||||||||