You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/hal/components/timedelta.comp
+22-7Lines changed: 22 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,24 @@
1
1
component timedelta "LinuxCNC HAL component that measures thread scheduling timing behavior";
2
-
pin out s32 out;
3
-
pin out s32 err=0;
4
-
pin out s32 min_=0;
5
-
pin out s32 max_=0;
6
-
pin out s32 jitter=0;
7
-
pin out float avg_err=0;
8
-
pin in bit reset;
2
+
3
+
pin out s32 jitter=0 "Worst-case scheduling error (in ns). This is the largest discrepancy between ideal thread period, and actual time between sequential runs of this component. This uses the absolute value of the error, so 'got run too early' and 'got run too late' both show up as positive jitter.";
4
+
5
+
pin out s32 current_jitter=0 "Scheduling error (in ns) of the current invocation. This is the discrepancy between ideal thread period, and actual time since the previous run of this component. This uses the absolute value of the error, so 'got run too early' and 'got run too late' both show up as positive jitter.";
6
+
7
+
pin out s32 current_error=0 "Scheduling error (in ns) of the current invocation. This is the discrepancy between ideal thread period, and actual time since the previous run of this component. This does not use the absolute value of the error, so 'got run too early' shows up as negative error and 'got run too late' shows up as positive error.";
8
+
9
+
pin out s32 min_=0 "Minimum time (in ns) between sequential runs of this component.";
10
+
11
+
pin out s32 max_=0 "Maximum time (in ns) between sequential runs of this component.";
12
+
13
+
pin in bit reset "Set this pin to True, then back to False, to reset some of the statistics.";
14
+
15
+
pin out s32 out "Time (in ns) since the previous run of this component. This should ideally be equal to the thread period.";
16
+
17
+
pin out s32 err=0 "Cumulative time error (in ns). Probably not useful.";
18
+
19
+
pin out float avg_err=0 "The average scheduling error (in ns).";
0 commit comments