Skip to content

Commit 338f4e4

Browse files
committed
screen.ts cleanup
1 parent 10a5566 commit 338f4e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

screen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,7 @@ namespace user_interface_base {
184184
public static fill(
185185
c: number
186186
) {
187-
let startTime = input.runningTime();
188187
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_FILL, c]));
189-
let endTime = input.runningTime();
190-
basic.showNumber(endTime - startTime)
191188
}
192189

193190
public static fillRect(
@@ -197,7 +194,10 @@ namespace user_interface_base {
197194
height: number,
198195
c: number
199196
) {
197+
let startTime = input.runningTime();
200198
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_FILL_RECT, x + Screen.HALF_WIDTH, y + Screen.HALF_HEIGHT, width, height, c]))
199+
let endTime = input.runningTime();
200+
basic.showNumber(endTime - startTime)
201201
}
202202

203203
public static fillRectXfrm(

0 commit comments

Comments
 (0)