Last active
February 28, 2021 01:34
-
-
Save renopaslah/9c13865f9df0e0ffacd3398d88313859 to your computer and use it in GitHub Desktop.
test_upload_image_proses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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