FileHelper.TransferSpeedAsString Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

TransferSpeedAsString(Int64, Int64)

Returns the transfer speed as a string, e.g. 5 Mbit/s, given the bytes transferred and the total transfer time.

public static string TransferSpeedAsString(long bytes, long milliseconds)

Parameters

bytes
System.Int64
milliseconds
System.Int64

Returns

System.String

The file size as a string.