AuroraRuntime/Include/Aurora/IO/Net/ISocketStats.hpp
Jamie Reece Wilson 1f685b635b [+] ISocketStats::GetUptimeNS
[*] Some socket stat cleanup+fixes
2023-10-23 09:17:46 +01:00

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