27 lines
618 B
C#
27 lines
618 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using DataCore;
|
|||
|
using System.Threading;
|
|||
|
|
|||
|
namespace DataCore_Console
|
|||
|
{
|
|||
|
class Program
|
|||
|
{
|
|||
|
static void Main(string[] args)
|
|||
|
{
|
|||
|
for(int i=0; i< 1000; i++)
|
|||
|
{
|
|||
|
Console.WriteLine("Download data rate: {0} kB/s;\t\t Upload: {1} kB/s", (double)GetAdapterStats.InputRate() /1024, (double)GetAdapterStats.OutputRate() / 1024);
|
|||
|
Thread.Sleep(100);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
Console.ReadKey();
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|