Skip to content

The open alternative to Salesforce, designed for AI.

144 B
Raw Blame
export const formatDuration = (ms: number): string => {
  if (ms < 1000) {
    return `${ms}ms`;
  }

  return `${(ms / 1000).toFixed(1)}s`;
};