import { VirtualClock } from './types' ; param currentTime export function createVirtualClock ( currentTime = 0 ) { return { currentTime : ( ) => currentTime , progressTimeBy : ( delayMs ) => ( currentTime += delayMs ) , } ; }