Matlab測量時間的方法
winggundam :: all :: 電腦知識
第1頁(共1頁)
Matlab測量時間的方法
help cputime
CPUTIME CPU time in seconds.
CPUTIME returns the CPU time in seconds that has been used
by the MATLAB process since MATLAB started.
For example:
t=cputime; your_operation; cputime-t
returns the cpu time used to run your_operation.
The return value may overflow the internal representation
and wrap around.
help tic
TIC Start a stopwatch timer.
TIC and TOC functions work together to measure elapsed time.
TIC saves the current time that TOC uses later to measure
the elapsed time. The sequence of commands:
TIC
operations
TOC
measures the amount of time MATLAB takes to complete the one
or more operations specifed here by "operations" and displays
the time in seconds.
http://blog.chinaunix.net/u/21948/showart_681652.html
CPUTIME CPU time in seconds.
CPUTIME returns the CPU time in seconds that has been used
by the MATLAB process since MATLAB started.
For example:
t=cputime; your_operation; cputime-t
returns the cpu time used to run your_operation.
The return value may overflow the internal representation
and wrap around.
help tic
TIC Start a stopwatch timer.
TIC and TOC functions work together to measure elapsed time.
TIC saves the current time that TOC uses later to measure
the elapsed time. The sequence of commands:
TIC
operations
TOC
measures the amount of time MATLAB takes to complete the one
or more operations specifed here by "operations" and displays
the time in seconds.
http://blog.chinaunix.net/u/21948/showart_681652.html
winggundam :: all :: 電腦知識
第1頁(共1頁)
這個論壇的權限:
您 無法 在這個版面回復文章