PATH:
home
/
sparklp6
/
public_html
/
website_356c8563
/
nitropack
/
nitropack-sdk
/
vendor
/
nitropack
/
httpclient
/
src
<?php namespace NitroPack\HttpClient; class HttpClientTimer { public static $idCounter = 0; public $id; public $type; private $callback; private $delay; private $timeSet; public function __construct($callback, $delay, $type) { // $delay is in milliseconds $this->id = ++HttpClientTimer::$idCounter; $this->callback = $callback; $this->delay = $delay; $this->type = $type; $this->timeSet = microtime(true); } public function hasToExecute() { return (microtime(true) - $this->timeSet) * 1000 >= $this->delay; } public function execute() { call_user_func($this->callback); $this->timeSet = microtime(true); } public function getRemainingDelay() { return $this->delay - ((microtime(true) - $this->timeSet) * 1000); } }
[-] HttpClientProxy.php
[edit]
[-] .htaccess
[edit]
[-] HttpConfig.php
[edit]
[-] Logger.php
[edit]
[-] HttpClientTimerType.php
[edit]
[+]
StreamFilter
[-] HttpClientMulti.php
[edit]
[-] 57999
[edit]
[-] HttpClientSocksProxy.php
[edit]
[+]
Commands
[-] HttpClientSocks4Proxy.php
[edit]
[-] HttpClientTimer.php
[edit]
[-] HttpClientState.php
[edit]
[-] 7765
[edit]
[+]
..
[+]
Exceptions