SnaphaxApi->time() - higher precision system time
needed for some api calls
This commit is contained in:
parent
c5f2f62777
commit
87222b1fda
1 changed files with 6 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
|||
$this->auth_token = false;
|
||||
}
|
||||
function login() {
|
||||
$ts = time();
|
||||
$ts = $this->api->time();
|
||||
$out = $this->api->postCall(
|
||||
'/ph/login',
|
||||
array(
|
||||
|
@ -194,6 +194,11 @@
|
|||
$this->debug("out: $out");
|
||||
return $out;
|
||||
}
|
||||
|
||||
function time() {
|
||||
return round(microtime(true) * 1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue