X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/82cf0eaeddd1f87bf54db24d3f84856a679e53a4..a498fc6fc0fd9b85b3c847f825bf794b73e3b1d8:/Package.cpp diff --git a/Package.cpp b/Package.cpp index 57e20b3..c9f6870 100644 --- a/Package.cpp +++ b/Package.cpp @@ -50,6 +50,11 @@ ssize_t processJarFiles(Bundle* bundle, ZipFile* zip); status_t writeAPK(Bundle* bundle, const sp& assets, const String8& outputFile) { + #if BENCHMARK + fprintf(stdout, "BENCHMARK: Starting APK Bundling \n"); + long startAPKTime = clock(); + #endif /* BENCHMARK */ + status_t result = NO_ERROR; ZipFile* zip = NULL; int count; @@ -197,6 +202,10 @@ bail: if (result == NO_ERROR && bundle->getVerbose()) printf("Done!\n"); + + #if BENCHMARK + fprintf(stdout, "BENCHMARK: End APK Bundling. Time Elapsed: %f ms \n",(clock() - startAPKTime)/1000.0); + #endif /* BENCHMARK */ return result; }