44 lines
893 B
C++
44 lines
893 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: ISocketStats.hpp
|
|
Date: 2022-12-06
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO::Net
|
|
{
|
|
struct ISocketStats
|
|
{
|
|
/**
|
|
* @brief time from the au epoch. see: AuTime::.
|
|
* @return
|
|
*/
|
|
virtual AuInt64 GetFirstTickTimeMS() = 0;
|
|
|
|
/**
|
|
* @brief time from the au epoch. see: AuTime::.
|
|
* @return
|
|
*/
|
|
virtual AuInt64 GetLastTickTimeMS() = 0;
|
|
|
|
/**
|
|
* @brief
|
|
* @return
|
|
*/
|
|
virtual AuUInt64 GetTotalBytesTransferred() = 0;
|
|
|
|
/**
|
|
* @brief
|
|
* @return bytes / second
|
|
*/
|
|
virtual double GetApproximatedThroughput() = 0;
|
|
|
|
/**
|
|
* @brief
|
|
* @return
|
|
*/
|
|
virtual AuUInt64 GetUptimeNS() = 0;
|
|
};
|
|
} |