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
410
データサイエンス13_解析.pdf
jnlp
0
520
データサイエンス12_分類.pdf
jnlp
0
370
データサイエンス11_前処理.pdf
jnlp
0
490
Recurrent neural network based language model
jnlp
0
150
自然言語処理研究室 研究概要(2012年)
jnlp
0
150
自然言語処理研究室 研究概要(2013年)
jnlp
0
120
自然言語処理研究室 研究概要(2014年)
jnlp
0
140
自然言語処理研究室 研究概要(2015年)
jnlp
0
220
Other Decks in Programming
See All in Programming
Java 21/25 Virtual Threads 소개
debop
0
270
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
520
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
130
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
1.1k
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
400
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
300
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
270
へんな働き方
yusukebe
5
2.8k
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
6
1.1k
Feature Toggle は捨てやすく使おう
gennei
0
330
Claude Codeログ基盤の構築
giginet
PRO
7
3.6k
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
380
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
240
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
A designer walks into a library…
pauljervisheath
210
24k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
WCS-LA-2024
lcolladotor
0
500
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
How to train your dragon (web standard)
notwaldorf
97
6.6k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Claude Code のすすめ
schroneko
67
220k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
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で 割って秒に直す