Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
基礎情報処理演習(補足)実行時間の測定
Search
自然言語処理研究室
December 07, 2012
Programming
0
1.4k
基礎情報処理演習(補足)実行時間の測定
自然言語処理研究室
December 07, 2012
Tweet
Share
More Decks by 自然言語処理研究室
See All by 自然言語処理研究室
データサイエンス14_システム.pdf
jnlp
0
390
データサイエンス13_解析.pdf
jnlp
0
500
データサイエンス12_分類.pdf
jnlp
0
350
データサイエンス11_前処理.pdf
jnlp
0
470
Recurrent neural network based language model
jnlp
0
140
自然言語処理研究室 研究概要(2012年)
jnlp
0
140
自然言語処理研究室 研究概要(2013年)
jnlp
0
110
自然言語処理研究室 研究概要(2014年)
jnlp
0
130
自然言語処理研究室 研究概要(2015年)
jnlp
0
210
Other Decks in Programming
See All in Programming
俺流レスポンシブコーディング 2025
tak_dcxi
14
8.5k
複数人でのCLI/Infrastructure as Codeの暮らしを良くする
shmokmt
5
2.2k
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
1k
Cell-Based Architecture
larchanjo
0
110
AtCoder Conference 2025「LLM時代のAHC」
imjk
1
250
dnx で実行できるコマンド、作ってみました
tomohisa
0
140
これだけで丸わかり!LangChain v1.0 アップデートまとめ
os1ma
6
1.8k
なあ兄弟、 余白の意味を考えてから UI実装してくれ!
ktcryomm
11
11k
UIデザインに役立つ 2025年の最新CSS / The Latest CSS for UI Design 2025
clockmaker
18
7.3k
CSC509 Lecture 14
javiergs
PRO
0
220
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
380
TypeScript 5.9 で使えるようになった import defer でパフォーマンス最適化を実現する
bicstone
1
1.3k
Featured
See All Featured
Code Review Best Practice
trishagee
74
19k
Balancing Empowerment & Direction
lara
5
790
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
720
Practical Orchestrator
shlominoach
190
11k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.3k
Building Adaptive Systems
keathley
44
2.9k
Making Projects Easy
brettharned
120
6.5k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
970
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Side Projects
sachag
455
43k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Transcript
基礎情報処理演習(補足) 実行時間の測定 山本和英 長岡技術科学大学 1
プログラム例 #include <stdio.h> #include <time.h> void main(void){ clock_t start_time, end_time;
start_time = clock(); /* 測定したい処理をここに書く */ end_time = clock(); printf ("time = %.3f\n", (double) (end_time – start_time) / CLOCKS_PER_SEC ); } ※測定精度は 0.1秒程度のようです。 2
解説 #include <stdio.h> #include <time.h> void main(void){ clock_t start_time, end_time;
start_time = clock(); /* 測定したい処理をここに書く */ end_time = clock(); printf ("time = %.3f\n", (double) (end_time – start_time) / CLOCKS_PER_SEC ); } 3 測定開始時刻を記録 測定終了時刻を記録 clock()と CLOCKS_PER_SECが定義
解説(続き) #include <stdio.h> #include <time.h> void main(void){ clock_t start_time, end_time;
start_time = clock(); /* 測定したい処理をここに書く */ end_time = clock(); printf ("time = %.3f\n", (double) (end_time – start_time) / CLOCKS_PER_SEC ); } 4 両者の時刻差を CLOCKS_PER_SECで 割って秒に直す