diff options
| author | Uri Shaked | 2021-09-10 21:16:34 +0300 |
|---|---|---|
| committer | Uri Shaked | 2021-09-10 21:16:34 +0300 |
| commit | 96a6dba4371a2e319a47335b2bf366b695b6c17a (patch) | |
| tree | 1664c852cc86826a9fd6795a6512c6d8fa92a686 /demo/src/cpu-performance.ts | |
| parent | feat(adc): ADC peripheral #13 (diff) | |
| download | avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.tar.gz avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.tar.bz2 avr8js-96a6dba4371a2e319a47335b2bf366b695b6c17a.zip | |
refactor: remove the ICPU interface
Removing the interface simplifies the code
Diffstat (limited to 'demo/src/cpu-performance.ts')
| -rw-r--r-- | demo/src/cpu-performance.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/src/cpu-performance.ts b/demo/src/cpu-performance.ts index f61d038..a4afc73 100644 --- a/demo/src/cpu-performance.ts +++ b/demo/src/cpu-performance.ts @@ -1,4 +1,4 @@ -import { ICPU } from 'avr8js'; +import { CPU } from 'avr8js'; export class CPUPerformance { private prevTime = 0; @@ -6,7 +6,7 @@ export class CPUPerformance { private samples = new Float32Array(64); private sampleIndex = 0; - constructor(private cpu: ICPU, private MHZ: number) {} + constructor(private cpu: CPU, private MHZ: number) {} reset() { this.prevTime = 0; |
