androidMain.aws.sdk.kotlin.crt.http.HttpStreamMetricsJVM.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-crt-kotlin-android Show documentation
Show all versions of aws-crt-kotlin-android Show documentation
Kotlin Multiplatform bindings for AWS SDK Common Runtime
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.crt.http
/**
* Convert a CRT JNI metrics object into a Kotlin-native one
*/
public fun software.amazon.awssdk.crt.http.HttpStreamMetrics.toKotlin(): HttpStreamMetrics =
HttpStreamMetrics(
sendStartTimestampNs = this.sendStartTimestampNs,
sendEndTimestampNs = this.sendEndTimestampNs,
sendingDurationNs = this.sendingDurationNs,
receiveStartTimestampNs = this.receiveStartTimestampNs,
receiveEndTimestampNs = this.receiveEndTimestampNs,
receivingDurationNs = this.receivingDurationNs,
streamId = this.streamId,
)