TenantAtlas/apps/platform/.pnpm-store/v10/files/3a/55606591fb292e31b4e4d037e5f659aa3f9afa9c047875903ca269991a9bf7da35b2a026d9b3a75d726572a017bbba241ad2cc961f0f3288df66fd4647f32d
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

15 lines
472 B
Plaintext

import { TimestampProvider } from '../types';
interface PerformanceTimestampProvider extends TimestampProvider {
delegate: TimestampProvider | undefined;
}
export const performanceTimestampProvider: PerformanceTimestampProvider = {
now() {
// Use the variable rather than `this` so that the function can be called
// without being bound to the provider.
return (performanceTimestampProvider.delegate || performance).now();
},
delegate: undefined,
};