Milliseconds Counter

Display elapsed time in milliseconds — perfect for UI loading states, response times, and performance metrics.

Expression Code

// MILLISECONDS COUNTER
// Apply to Source Text
// === SETTINGS ===
startMs = 0;          // starting milliseconds
multiplier = 1000;    // speed (1000 = real-time, 2000 = 2x speed)
maxMs = 0;            // cap value (0 = no cap)
prefix = "";          // text before (e.g., "Loading: ")
suffix = "ms";        // text after (e.g., "ms" or "s")
decimals = 0;         // decimal places (0, 1, 2, 3)

// === COUNTER LOGIC ===
ms = startMs + (time * multiplier);
if (maxMs > 0 && ms > maxMs) ms = maxMs;

// Format with decimals
if (decimals > 0) {
    result = ms.toFixed(decimals);
} else {
    result = Math.floor(ms);
}

prefix + result + suffix
Apply to a text layer's Source Text property. The counter shows elapsed milliseconds synced to comp time. 1. Create a text layer 2. Alt/Option-click the Source Text stopwatch 3. Paste this expression 4. Adjust multiplier to control counting speed