본문 바로가기

Code Habit

검색하기
Code Habit
프로필사진 코드베어

  • 분류 전체보기 (203)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • File
  • range
  • install
  • Linux
  • 리뷰
  • Callback
  • Close
  • tcp
  • JavaScript
  • json
  • Sync
  • FOR
  • channel
  • windows
  • Golang
  • 책
  • 영화
  • Python
  • write
  • window
  • c++
  • go언어
  • package
  • mutex
  • GO 언어
  • bitcoin
  • go
  • API
  • http
  • C
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록duration (1)

Code Habit

[c++] chrono 라이브러리

std::chrono 라이버리는 c++ 11부터 제공되는 라이브러리로 시간을 측정하고 관리하는 다양한 유형의 클래스와 함수를 제공하여 시간 간격, 지연 및 시간 단위 변환 등 시간을 관련 작업을 수행한다. 1. 시간 간격 구하기 #include #include int main() { // get start_time auto start_time = std::chrono::high_resolution_clock::now(); // wait 2 second std::this_thread::sleep_for(std::chrono::seconds(2)); // get end time auto end_time = std::chrono::high_resolution_clock::now(); // cal duratio..

카테고리 없음 2024. 1. 30. 00:09
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바