SnaphaxApi->time() - higher precision system time

needed for some api calls
This commit is contained in:
Thomas Lackner 2013-01-06 23:28:56 -06:00
parent c5f2f62777
commit 87222b1fda

View file

@ -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);
}
}