You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wanderhome-foundry-system/node_modules/rxjs/src/internal/scheduler/performanceTimestampProvide...

15 lines
472 B
TypeScript

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,
};