mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
27 lines
882 B
C++
27 lines
882 B
C++
|
#ifndef _LIBRARY_CHRONO_HPP_
|
||
|
#define _LIBRARY_CHRONO_HPP_
|
||
|
|
||
|
// ------------------------------------------------------------------------------------------------
|
||
|
#include "SqBase.hpp"
|
||
|
|
||
|
// ------------------------------------------------------------------------------------------------
|
||
|
namespace SqMod {
|
||
|
|
||
|
/* ------------------------------------------------------------------------------------------------
|
||
|
* Retrieve the current time as microseconds.
|
||
|
*/
|
||
|
Int64 GetCurrentSysTime();
|
||
|
|
||
|
/* ------------------------------------------------------------------------------------------------
|
||
|
* Retrieve the epoch time as microseconds.
|
||
|
*/
|
||
|
Int64 GetEpochTimeMicro();
|
||
|
|
||
|
/* ------------------------------------------------------------------------------------------------
|
||
|
* Retrieve the epoch time as milliseconds.
|
||
|
*/
|
||
|
Int64 GetEpochTimeMilli();
|
||
|
|
||
|
} // Namespace:: SqMod
|
||
|
|
||
|
#endif // _LIBRARY_CHRONO_HPP_
|