AuroraRuntime/Include/Aurora/IO/Net/ISocketStats.hpp

38 lines
786 B
C++
Raw Normal View History

/***
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;
};
}