# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.daum.net/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://ftp.daum.net/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://ftp.daum.net/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.daum.net/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://ftp.daum.net/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://ftp.daum.net/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5

Posted by 꿍's
,

자신이 수행하는 루틴의 성능을 측정하는 방법으로 그 루틴이 수행된 시간을 획득 하는 방법이 있다.
Windows에서는 여러가지 시간측정 방법을 제시하는데, 여기서는 QueryPerformanceCounter를 알아보겠다.


QueryPerformanceCounter : 고성능의 카운터이다. LONGLONG 형의 64bit 인자를 가지며, 가장 낮은 단위의 시간측정을 지원한다. 하지만 일부 최신의 시스템(CPU 클럭이 2G이상이거나, AMD사의 듀얼 코어 이상의 제품)에서는 잘못된 값을 전달하기때문에 문제가 발생 할 수 있다.

사용방법

#include 

static LARGE_INTEGER initial;
static LARGE_INTEGER freq;
void Start()
{
    QueryPerformanceCounter(&initial);
}

void Performance()
{
    LARGE_INTEGER counter;
    double StartQuerytime;
    double EndQuerytime;
    QueryPerformanceCounter(&counter);
    QueryPerformanceFrequency(&freq);
 

    StartQuerytime = ((double)(counter.QuadPart-initial.QuadPart)) / ((double)freq.QuadPart);
    측정함수();
    QueryPerformanceCounter(&counter);
    QueryPerformanceFrequency(&freq);
    EndQuerytime = ((double)(counter.QuadPart-initial.QuadPart)) / ((double)freq.QuadPart);
    printf("%d", (unsigned int)((EndQuerytime-StartQuerytime)*1000));
} 

 

Posted by 꿍's
,

Dialog가 종료되는 상황
  1. IDOK 버튼을 눌렀을 때
    • OnOK() 호출 뒤 OnDestroy() 호출됨
  2. IDCANCEL 버튼을 눌렀을 때
    • OnCancel() 호출 뒤 OnDestroy() 호출됨
  3. Dialog의 우측 상단 종료 버튼(x)를 눌렀을 때
    • OnClose() 호출 뒤 OnCancel() 마지막으로 OnDestroy() 호출됨
  4. Esc 버튼을 눌러 종료할 때 - 결과만 놓고 봤을 때 'Esc = IDCANCEL' 이 된다는 말인가?? 아무튼 결과는 동일
    • OnCancel() 호출 뒤 OnDestroy() 호출됨
  5. Alt + F4 로 종료할 때
    • OnClose() 호출 뒤 OnCancel() 마지막으로 OnDestroy() 호출됨
Posted by 꿍's
,