Skip to content

Commit c74b803

Browse files
committed
timing zip upload
1 parent b3ccd74 commit c74b803

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commands/utils/uploader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function upload_zip(lt_config, file_name, prefix = "project", env = "prod") {
5555
}
5656
get_signed_url(lt_config, prefix, env)
5757
.then(function (responseDataURL) {
58+
let start = Date.now();
5859
console.log("Uploading the project");
5960
let options = {
6061
url: responseDataURL["value"]["message"],
@@ -90,6 +91,8 @@ function upload_zip(lt_config, file_name, prefix = "project", env = "prod") {
9091
}
9192
}
9293
});
94+
let timeTaken = Date.now() - start;
95+
console.log("Total time taken to upload file : " + timeTaken/1000 + "seconds");
9396
})
9497
.catch(function (err) {
9598
reject(err);

0 commit comments

Comments
 (0)