Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
380
データサイエンス13_解析.pdf
jnlp
0
470
データサイエンス12_分類.pdf
jnlp
0
330
データサイエンス11_前処理.pdf
jnlp
0
450
Recurrent neural network based language model
jnlp
0
130
自然言語処理研究室 研究概要(2012年)
jnlp
0
130
自然言語処理研究室 研究概要(2013年)
jnlp
0
93
自然言語処理研究室 研究概要(2014年)
jnlp
0
110
自然言語処理研究室 研究概要(2015年)
jnlp
0
180
Other Decks in Programming
See All in Programming
プロダクト志向ってなんなんだろうね
righttouch
PRO
0
160
Deep Dive into ~/.claude/projects
hiragram
8
1.5k
XSLTで作るBrainfuck処理系
makki_d
0
210
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
450
Julia という言語について (FP in Julia « SIDE: F ») for 関数型まつり2025
antimon2
3
980
WindowInsetsだってテストしたい
ryunen344
1
190
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
290
イベントストーミング図からコードへの変換手順 / Procedure for Converting Event Storming Diagrams to Code
nrslib
1
400
Gleamという選択肢
comamoca
6
760
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
330
ASP.NETアプリケーションのモダナイズ インフラ編
tomokusaba
1
410
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
430
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
Six Lessons from altMBA
skipperchong
28
3.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
Stop Working from a Prison Cell
hatefulcrawdad
270
20k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
Making the Leap to Tech Lead
cromwellryan
134
9.3k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Fireside Chat
paigeccino
37
3.5k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Faster Mobile Websites
deanohume
307
31k
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で 割って秒に直す