걸어서개발한바퀴

  • 홈
  • 태그
  • 방명록

Time 1

Python time 라이브러리 활용한 로그 찍기

Python time library를 활용한 로그를 찍는 방법을 알아보도록 하겠습니다. Infinite loop가 돌아갈 때, 처음 time을 저장하고, 예를 들어 while loop이 돌아갈 때마다 처음 time에서 계산된 time을 프린트하는 방법을 알아보도록 하겠습니다. import time if __name__ == "__main__": start_time = time.time() while True: this_time = time.time() time_diff = round(this_time - start_time) print(time_diff) # do something # sleep(1) 쓰고 나니깐 너무 간단하네요 ㅎㅎ

Python 2022.05.10
1
더보기

방문자수Total

  • Today :
  • Yesterday :
프로필사진

개발여행 가 봅시다~

  • 분류 전체보기 (193)
    • Audio Processing (2)
    • 알고리즘 (7)
      • 리트코드 (5)
    • Data Engineering (3)
    • Linux (16)
      • Ubuntu (13)
    • Utils (15)
      • Program (4)
      • Git (6)
    • Machine Learning (30)
      • Device (7)
      • Tensorflow (5)
      • Regression (1)
    • Python (10)
      • Concurrency (4)
      • Basics (3)
    • 환경설정 (11)
    • kaggle 및 dacon (2)
    • Web Programming (18)
      • Server (5)
      • Java Spring (11)
    • Cloud (2)
      • Docker (7)
    • Network (2)
      • protocols (1)
    • Video Processing (5)
      • Gstreamer (2)
    • Image Processing (11)
      • Cv2 (8)
    • Deep Learning (30)
      • NLP (10)
      • Computer Vision (11)
    • 잡담 (2)
    • 모바일 (1)
      • 안드로이드 (10)
      • flutter (2)
    • openai (5)
    • Data Science (2)

Tag

docker, jetson, 도커, yolov5, Git, image classification, mac, GCP, ubuntu, cv2, yolo, TFlite, Linux, CNN, Python, spring boot, OpenCV, Android, tx2, tensorflow,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바