File tree 1 file changed +5
-0
lines changed 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export class BuildController extends EventEmitter implements IBuildController {
43
43
44
44
public async build ( buildData : IBuildData ) : Promise < string > {
45
45
this . $logger . info ( "Building project..." ) ;
46
+ const startTime = performance . now ( ) ;
46
47
47
48
const platform = buildData . platform . toLowerCase ( ) ;
48
49
const projectData = this . $projectDataService . getProjectData (
@@ -102,7 +103,11 @@ export class BuildController extends EventEmitter implements IBuildController {
102
103
buildInfoFileDir
103
104
) ;
104
105
106
+ const endTime = performance . now ( ) ;
107
+ const buildTime = ( endTime - startTime ) / 1000 ;
108
+
105
109
this . $logger . info ( "Project successfully built." ) ;
110
+ this . $logger . info ( `Build time: ${ buildTime . toFixed ( 3 ) } s.` ) ;
106
111
107
112
const result = await this . $buildArtefactsService . getLatestAppPackagePath (
108
113
platformData ,
You can’t perform that action at this time.
0 commit comments