Skip to content

Commit

Permalink
add new function
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Nov 9, 2024
1 parent 21504b0 commit 7c04d0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/base/sim/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ namespace pxsim.control {
})
const cb = getResume();
}
export function singleSimulator() {
pxsim.Runtime.postMessage(<pxsim.SimulatorCommandMessage>{
type: "simulator",
command: "single"
})
const cb = getResume();
}
export function waitMicros(micros: number) {
thread.pause(micros / 1000); // it prempts not much we can do here.
}
Expand Down

0 comments on commit 7c04d0d

Please sign in to comment.