UNPKG

react-native-benchmark

Version:

React Native benchmarking library inspired by benchmark.js

23 lines (19 loc) 407 B
import { Benchmark } from "./benchmark"; import { Suite } from "./suite"; export enum EventType { ABORT = 'abort', START = 'start', CYCLE = 'cycle', COMPLETE = 'complete', ERROR = 'error', } export class Event { type: EventType; target?: Benchmark|Suite; constructor(type:EventType, target?:Benchmark|Suite) { this.type = type; if(target){ this.target = target; } } }