- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- system 에서 milisecond 까지 확인하기?
HP-UX
1752785
회원
6131
온라인
108789
솔루션
포럼
범주
Company
Local Language
뒤로
포럼
토론 게시판
포럼
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
토론 게시판
토론 게시판
포럼
토론 게시판
뒤로
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
블로그
정보
커뮤니티 언어
언어
포럼
블로그
3 응답 3
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 01-28-2004 11:00 PM
날짜: 01-28-2004 11:00 PM
system 에서 milisecond 까지 확인하기?
안녕하세요~
이종민입니다.
헛!! 기발한 질문입니다.
저도 궁금한데요...??
혹시 서버를 스톱워치의 용도로 사용하실 계획이신지...??^^
답변도 아니면도 굴비단점 용서하십쑈..
이종민입니다.
헛!! 기발한 질문입니다.
저도 궁금한데요...??
혹시 서버를 스톱워치의 용도로 사용하실 계획이신지...??^^
답변도 아니면도 굴비단점 용서하십쑈..
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 01-29-2004 11:00 PM
날짜: 01-29-2004 11:00 PM
system 에서 milisecond 까지 확인하기?
아래 ITRC 발췌내용을 참고하세요...
결론적으로 명령어는 제공되지 않으며 gettimeofday() 함수를 이용해서
msec까지 나타낼 수 있습니다..
Have a good day~~
-hp itrc내용-
Sorry that's not available from a "standard" command. You'll have to use the gettimeofday() function.
See man gettimeofday for further details.
결론적으로 명령어는 제공되지 않으며 gettimeofday() 함수를 이용해서
msec까지 나타낼 수 있습니다..
Have a good day~~
-hp itrc내용-
Sorry that's not available from a "standard" command. You'll have to use the gettimeofday() function.
See man gettimeofday for further details.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 01-29-2004 11:00 PM
날짜: 01-29-2004 11:00 PM
system 에서 milisecond 까지 확인하기?
아래의 c 프로그램을 사용하면 될것 같은데요..
ftime() 이라는 함수가 있습니다. 이함수가 millisecond 까지
가지고 있는것 같습니다.
#include sys/timeb.h ==> 여기 <> 이 필요합니다.
main()
{
struct timeb mytime;
ftime(&mytime);
printf ("millisecond is %d\n", mytime.millitm);
}
그리고 perl 로 하는 방법도 있네요..
#!/usr/bin/perl -w
my $seconds = time();
printf ("Epoch Seconds = %d\n",$seconds);
my($sec,$min,$hour,$mon,$year,$wday,$yday,$isdst) = localtime($seconds);
$year += 1900;
$mon += 1;
printf("Sec: %d Min: %d Hr: %d Month: %d\n",
$sec,$min,$hour,$mon);
printf("Yr: %d Wk Day: %d Yr Day: %d Is Dst? %d\n",
$year,$wday,$yday,$isdst);
참고하시길..
ftime() 이라는 함수가 있습니다. 이함수가 millisecond 까지
가지고 있는것 같습니다.
#include sys/timeb.h ==> 여기 <> 이 필요합니다.
main()
{
struct timeb mytime;
ftime(&mytime);
printf ("millisecond is %d\n", mytime.millitm);
}
그리고 perl 로 하는 방법도 있네요..
#!/usr/bin/perl -w
my $seconds = time();
printf ("Epoch Seconds = %d\n",$seconds);
my($sec,$min,$hour,$mon,$year,$wday,$yday,$isdst) = localtime($seconds);
$year += 1900;
$mon += 1;
printf("Sec: %d Min: %d Hr: %d Month: %d\n",
$sec,$min,$hour,$mon);
printf("Yr: %d Wk Day: %d Yr Day: %d Is Dst? %d\n",
$year,$wday,$yday,$isdst);
참고하시길..
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
뉴스 및 이벤트
© Copyright 2024 Hewlett Packard Enterprise Development LP