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.3k
基礎情報処理演習(補足)実行時間の測定
自然言語処理研究室
December 07, 2012
Tweet
Share
More Decks by 自然言語処理研究室
See All by 自然言語処理研究室
データサイエンス14_システム.pdf
jnlp
0
330
データサイエンス13_解析.pdf
jnlp
0
380
データサイエンス12_分類.pdf
jnlp
0
290
データサイエンス11_前処理.pdf
jnlp
0
400
Recurrent neural network based language model
jnlp
0
100
自然言語処理研究室 研究概要(2012年)
jnlp
0
100
自然言語処理研究室 研究概要(2013年)
jnlp
0
69
自然言語処理研究室 研究概要(2014年)
jnlp
0
64
自然言語処理研究室 研究概要(2015年)
jnlp
0
120
Other Decks in Programming
See All in Programming
Rethinking UI building strategies @ SFI 2024
letelete
0
270
What We Can Learn From OSS
inouehi
0
420
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
640
Code Reviews
bkuhlmann
4
890
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
250
"config" ってなんだ? / What is "config"?
okashoi
0
240
Folding Cheat Sheet #3
philipschwarz
PRO
0
120
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
260
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
850
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.3k
Goのmultiple errorsについて (2024年4月版)
syumai
1
330
Hanami and htmx
bkuhlmann
0
200
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
59
5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
Fireside Chat
paigeccino
20
2.6k
The Invisible Side of Design
smashingmag
294
49k
Agile that works and the tools we love
rasmusluckow
324
20k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
Unsuck your backbone
ammeep
662
57k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
We Have a Design System, Now What?
morganepeng
42
6.7k
A better future with KSS
kneath
231
16k
How STYLIGHT went responsive
nonsquared
92
4.8k
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で 割って秒に直す