I'd like to create a simple internet traffic monitor. I need to obtain the amount of data downloaded and uploaded either since running the program or since the moment a connection started.
So far i only managed to obtain the AMOUNT of packets by using:
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties(); IPGlobalStatistics statistics = properties.GetIcmpV4Statistics();
Unfortunately it's useless for me... :P
Help me please if you can :).