Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

218 B
Raw Blame
import type { SpeedMultiplier } from '../types';

export function applySpeed(delayMs: number, speed: SpeedMultiplier): number {
  if (speed === 'instant') return 0;
  return Math.max(0, Math.round(delayMs / speed));
}