This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.

27 lines
618 B
C#
Raw Normal View History

2021-10-06 14:04:27 +13:00
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();
}
}
}