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;
|
$this->auth_token = false;
|
||||||
}
|
}
|
||||||
function login() {
|
function login() {
|
||||||
$ts = time();
|
$ts = $this->api->time();
|
||||||
$out = $this->api->postCall(
|
$out = $this->api->postCall(
|
||||||
'/ph/login',
|
'/ph/login',
|
||||||
array(
|
array(
|
||||||
|
@ -194,6 +194,11 @@
|
||||||
$this->debug("out: $out");
|
$this->debug("out: $out");
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function time() {
|
||||||
|
return round(microtime(true) * 1000);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue