public convertMicrotimeToTokens ( double $microtime ) : integer | ||
$microtime | double | The timestamp. |
return | integer | The tokens. |
public function convertMicrotimeToTokens($microtime)
{
$delta = bcsub(microtime(true), $microtime, $this->bcScale);
return $this->convertSecondsToTokens($delta);
}