Skip to content

Network Time Class Reference

TinyPlay edited this page Nov 21, 2021 · 1 revision

About Network Time

You can get current network time using this class via (https://worldtimeapi.org/) or current local time. All time presented by UTC timestamp (Unixtime)

Time Hack Detector

You can use Time Hack Detector class to compare system and network time automatically.

Read more here:
https://github.com/TinyPlay/Pixel-Anticheat/wiki/Detectors-API#time-hack-detector

API Reference

Method Params Returns Usage
GetCurrentNetworkTime() Action onTimeRecieved
Action onRequestError
- Get Current Network timestamp (in UTC) from WorldTimeAPI)
GetCurrentLocalTime() - local timestamp (UTC) Get Current Local timestamp (in UTC)
SecondsElapsed() int t1
int t2
Difference between two timestamps (Unix Time) in seconds) Get Difference between two timestamps in seconds

Navigation

Base Classes and Types:

Additional Classes and Types:

Encryption Classes:

Download Latest Release

Don't forget to install latest Pixel Anti-Cheat Release:
https://github.com/TinyPlay/Pixel-Anticheat/releases

Contacts

The developers of the library:
https://github.com/TinyPlay

Pixe Incubator Discord:
https://discord.com/invite/Ee9sYsttWP

VK Community:
https://vk.com/pixelincubator

Clone this wiki locally