mirror of
https://github.com/apache/nuttx.git
synced 2026-08-19 20:48:19 +00:00
Fix errors in documentation of NSH time commands
This commit is contained in:
parent
41992ca46a
commit
cb7d86f23b
1 changed files with 4 additions and 4 deletions
|
|
@ -2648,12 +2648,12 @@ time "<command>"
|
|||
<ul><pre>
|
||||
nsh> time "sleep 2"
|
||||
|
||||
2.0001 sec
|
||||
2.0100 sec
|
||||
nsh>
|
||||
</pre></ul>
|
||||
<p>
|
||||
The addition 100 microseconds in this example is the additional overhead of the time command execution itself which is included in the total.
|
||||
Timing quantization errors could also result in small errors in the measurement.
|
||||
The additional 10 millseconds in this example is due primarily to the quantization error in the timing (this setup used a 10 millisecond periodic system timer).
|
||||
Other sources of error could include the additional overhead of the time command execution itself which is included in the total.
|
||||
</p>
|
||||
<p>
|
||||
Notice that:
|
||||
|
|
@ -2673,7 +2673,7 @@ nsh>
|
|||
nsh> time "sleep 2" &
|
||||
time [3:100]
|
||||
nsh>
|
||||
2.0001 sec
|
||||
2.0100 sec
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue