phantasmal-world/src/core/Clock.ts
2020-01-17 14:23:50 +01:00

10 lines
140 B
TypeScript

export interface Clock {
now(): Date;
}
export class DateClock implements Clock {
now(): Date {
return new Date();
}
}