diff --git a/src/lib/support/TimeUtils.h b/src/lib/support/TimeUtils.h index 82be87b6502722..ead9b49637c9d7 100644 --- a/src/lib/support/TimeUtils.h +++ b/src/lib/support/TimeUtils.h @@ -216,4 +216,10 @@ inline uint64_t SecondsToMilliseconds(uint32_t seconds) return (seconds * kMillisecondsPerSecond); } +// For backwards-compatibility of public API. +[[deprecated("Use SecondsToMilliseconds")]] inline uint64_t secondsToMilliseconds(uint32_t seconds) +{ + return SecondsToMilliseconds(seconds); +} + } // namespace chip