2025-10-07 23:02:12 +00:00
|
|
|
// ===----------------------------------------------------------------------===
|
|
|
|
|
//
|
|
|
|
|
// This source file is part of the Marvel Service open source project
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2025 Röck+Cöde VoF. and the Marvel Service project authors
|
|
|
|
|
// Licensed under Apache license v2.0
|
|
|
|
|
//
|
2025-10-04 10:57:15 +00:00
|
|
|
// See LICENSE for license information
|
2025-10-07 23:02:12 +00:00
|
|
|
// See CONTRIBUTORS for the list of Marvel Service project authors
|
2025-10-04 10:57:15 +00:00
|
|
|
//
|
2025-10-07 23:02:12 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
//
|
|
|
|
|
// ===----------------------------------------------------------------------===
|
2025-10-04 10:57:15 +00:00
|
|
|
|
|
|
|
|
import struct Foundation.TimeInterval
|
|
|
|
|
|
|
|
|
|
extension TimeInterval {
|
|
|
|
|
|
|
|
|
|
// MARK: Functions
|
|
|
|
|
|
|
|
|
|
/// Converts a time interval to a string value.
|
|
|
|
|
/// - Returns: A time interval as a string.
|
|
|
|
|
var asString: String {
|
|
|
|
|
.init(format: "%f", self)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|