if( !function_exists('current_timestamp'))
{
    /**
     * [current_timestamp 返出日期时间类型带毫秒]
     * @Author   Jerry
     * @DateTime 2018-10-23T11:34:58+0800
     * @Example  eg:
     * @return   [type]                   [description]
     */
    function current_timestamp(){
      // date_default_timezone_set('PRC');
        $mtimestamp = sprintf("%.3f", microtime(true)); // 带毫秒的时间戳
        $timestamp = floor($mtimestamp); // 时间戳
        $milliseconds = round(($mtimestamp - $timestamp) * 1000); // 毫秒
        $datetime = date("Y-m-d H:i:s", $timestamp) . '.' . $milliseconds;
        return  sprintf("%s => %s", $mtimestamp, $datetime);//1523856374.820 => 2018-10-13 13:26:14.820
    }
}