some update for test algoritm

This commit is contained in:
2023-10-19 14:48:10 +02:00
parent 9059d77b3e
commit 268c270a4d
2 changed files with 53 additions and 61 deletions

View File

@@ -9,14 +9,31 @@
# Time Algorithm
```plantuml
@startuml
(*) --> "relTime = 0" as rt0
rt0 --> if goForward then
-left--> [false] "insert"
else
-right--> [true] "do Stuff"
@startuml
start
:rTime = 0
relInterval = 0
isEnd = it == list.end();
if (!isEnd) then (not end)
:relInterval = it.getRelTicks()
rTime += relInterval;
while ( !isEnd && ( relInterval <= 0 || (rTime < dTime) ) is (goForward)
:isEnd = (++it == list.end());
if (!isEnd) then (not end)
:relInterval = it.getRelTicks()
rTime += relInterval;
endif
endwhile
endif
: insert ;
@enduml
```