PHP ile kordinat mesafesi ölçme

function getDistanceBetweenPointsNew($latitude1, $longitude1, $latitude2, $longitude2) {
$theta = $longitude1 - $longitude2;
$miles = (sin(deg2rad($latitude1)) * sin(deg2rad($latitude2))) + (cos(deg2rad($latitude1)) * cos(deg2rad($latitude2)) * cos(deg2rad($theta)));
$miles = acos($miles);
$miles = rad2deg($miles);
$miles = $miles * 60 * 1.1515;
$feet = $miles * 5280;
$yards = $feet / 3;
$kilometers = $miles * 1.609344;
$meters = $kilometers * 1000;
return compact('miles','feet','yards','kilometers','meters');
}

$point1 = array('lat' => 40.770623, 'long' => -73.964367);
$point2 = array('lat' => 40.758224, 'long' => -73.917404);
$distance = getDistanceBetweenPointsNew($point1['lat'], $point1['long'], $point2['lat'], $point2['long']);
foreach ($distance as $unit => $value) {
echo $unit.': '.number_format($value,4).'
';
}

The example returns the following:

miles: 2.6025
feet: 13,741.4350
yards: 4,580.4783
kilometers: 4.1884
meters: 4,188.3894

SQL Server CPU Kullanım raporu sorgusu

SELECT TOP 200
q.text
,DB_NAME(DatabaseID) AS [DatabaseName]
,CONVERT(NUMERIC(10, 2), CONVERT(NUMERIC, (total_worker_time)) / 1000000) AS [CPU_Time_sn]
,qs.execution_count
,CONVERT(NUMERIC(10, 2), (CONVERT(NUMERIC, (total_worker_time)) / qs.execution_count) / 1000000) AS AVG_Time
,CONVERT(NUMERIC(10, 2), CONVERT(NUMERIC, (qs.last_worker_time)) / 1000000) AS last_worker_time
,CONVERT(NUMERIC(10, 2), CONVERT(NUMERIC, (qs.min_worker_time)) / 1000000) AS min_worker_time
,CONVERT(NUMERIC(10, 2), CONVERT(NUMERIC, (qs.max_worker_time)) / 1000000) AS max_worker_time
,CONVERT(NUMERIC(10, 2), CONVERT(NUMERIC, (qs.last_elapsed_time)) / 1000000) AS last_elapsed_time
,CONVERT(NUMERIC(10, 2), CONVERT(NUMERIC, (qs.max_elapsed_time)) / 1000000) AS max_elapsed_time
,qs.last_physical_reads
,qs.last_execution_time
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY (SELECT
CONVERT(INT, value) AS [DatabaseID]
FROM sys.dm_exec_plan_attributes(qs.plan_handle)
WHERE attribute = N'dbid') AS F_DB
CROSS APPLY sys.dm_exec_sql_text(plan_handle) q
WHERE DB_NAME(DatabaseID) = 'VeritabaniAdi'
ORDER BY AVG_Time DESC