Reports calls to time-related functions that accept Long values in milliseconds/nanoseconds when Duration-based overloads are available.

Using Duration-based APIs provides better type safety and readability:

Example:


// Before
delay(1000)
withTimeout(5000) { ... }

// After
delay(1000.milliseconds)
withTimeout(5000.milliseconds) { ... }

New in 2025.3