10BC0 Rework timing related methods: · Villavu/Simba@dd930b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd930b6

Browse files
committed
Rework timing related methods:
- GetTickCount has been removed in favour of Time() which on all platforms returns unix time in ms - More verbose TDateTime Create methods, removed Now/NowUTC - PreciseSleep improvements - Docs for above
1 parent 2ade6fd commit dd930b6

17 files changed

+689
-550
lines changed

DocGen/docgen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pip3 install sphinx furo myst-parser
22
# Theme is https://pradyunsg.me/furo/quickstart/
3+
# https://myst-parser.readthedocs.io/en/v0.13.3/using/syntax.html
34

45
import os
56
import glob
@@ -70,4 +71,4 @@ def between(str, start, stop):
7071
with open(source, 'r', encoding='utf-8') as f:
7172
contents = f.read().replace("h2", "h3")
7273
with open(source, 'w', encoding='utf-8') as f:
73-
f.write(contents)
74+
f.write(contents)

Source/Simba.lpi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@
469469
<PackageName Value="LCL"/>
470470
</Item5>
471471
</RequiredPackages>
472-
<Units Count="82">
472+
<Units Count="83">
473473
<Unit0>
474474
<Filename Value="Simba.lpr"/>
475475
<IsPartOfProject Value="True"/>
@@ -855,6 +855,10 @@
855855
<Filename Value="simba.component_divider.pas"/>
856856
<IsPartOfProject Value="True"/>
857857
</Unit81>
858+
<Unit82>
859+
<Filename Value="script/imports/simba.import_timing.pas"/>
860+
<IsPartOfProject Value="True"/>
861+
</Unit82>
858862
</Units>
859863
</ProjectOptions>
860864
<CompilerOptions>

Source/ide/simba.ide_tab.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ procedure TSimbaScriptTab.Run(Target: TWindowHandle);
578578
Save(FScriptFileName);
579579

580580
FScriptRunner := TSimbaScriptTabRunner.Create(Self);
581-
FScriptRunner.Run(['--target=' + Target.AsString()]);
581+
FScriptRunner.Run(['--target=' + IntToStr(Target)]);
582582
end;
583583
end;
584584

0 commit comments

Comments
 (0)
0