FileHelper.TransferSpeedAsString Method

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

TransferSpeedAsString(long, long)

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
long

The total bytes transferred

milliseconds
long

The transfer time in milliseconds

Returns

string

The file size as a string.