diff --git a/UML/timeAlgorithme.png b/UML/timeAlgorithme.png new file mode 100644 index 0000000..bd45cb9 Binary files /dev/null and b/UML/timeAlgorithme.png differ diff --git a/UML/timeAlgorithme.puml b/UML/timeAlgorithme.puml new file mode 100644 index 0000000..dd05eec --- /dev/null +++ b/UML/timeAlgorithme.puml @@ -0,0 +1,27 @@ +@startuml + +start +:newTime = 0 +totalTime = 0 +isEnd = it == list.end() +lastTime = 0; + +#tomato:if (!isEnd) then (not end) + #tomato:totalTime += it.getRelTicks(); +endif + + while ( !isEnd && (totalTime <= newTime) ) is (goForward) + :isEnd = (++it == list.end()); + :lastTime = totalTime; + #tomato:if (!isEnd) then (not end) + #tomato:totalTime += it.getRelTicks(); + endif + endwhile + +#tomato:if (!isEnd) then (not end) + #tomato:subRelTicks(newTime- lastTime); +endif +:it.setRelTicks(newTime - lastTime); +:insert(it, newTimeout); + +@enduml \ No newline at end of file diff --git a/readme.md b/readme.md index af143ef..0f29d9e 100644 --- a/readme.md +++ b/readme.md @@ -37,6 +37,7 @@ endif @enduml ``` +![timeAlgorithme.png](https://git.kb28.ch/Klagarge/XF/src/branch/main/UML%2FtimeAlgorithme.png) # Tests @@ -50,7 +51,7 @@ The Test Factory (TestFactory01) instantiates 2 objects:
QT result ✅ -![result.PNG](./test-bench%2Ftest1%2Fide-qtcreator-test1-idf%2Fresult.PNG) +![result.PNG](https://git.kb28.ch/Klagarge/XF/src/branch/main/test-bench/test1/ide-qtcreator-test1-idf/result.PNG) This test is successfully passed @@ -58,7 +59,7 @@ This test is successfully passed
STM result ✅ -![result.png](./test-bench%2Ftest1%2Fide-cubeide-test1-idf%2Fresult.png) +![result.png](https://git.kb28.ch/Klagarge/XF/src/branch/main/test-bench%2Ftest1%2Fide-cubeide-test1-idf%2Fresult.png)