Skip to content

Instantly share code, notes, and snippets.

@renopaslah
Last active February 28, 2021 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renopaslah/9c13865f9df0e0ffacd3398d88313859 to your computer and use it in GitHub Desktop.
Save renopaslah/9c13865f9df0e0ffacd3398d88313859 to your computer and use it in GitHub Desktop.
test_upload_image_proses
public function test_upload_image_proses()
{
// Start loading
$awal = microtime(true);
// Pengolahan file image
$inputFileName = base_url('/upload/files/test.png');
$data = file_get_contents($inputFileName);
// Menghitung waktu load
$akhir = microtime(true);
$totalwaktu = $akhir - $awal;
$bese64 = base64_encode($data);
echo 'Dieksekusi selama ' . number_format($totalwaktu, 3, '.', '') . ' detik!)';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment