MCPcopy Create free account
hub / github.com/defold/defold / start_command

Method start_command

build_tools/BuildTimeTracker.py:36–40  ·  view source on GitHub ↗

Start timing a build command

(self, command_name)

Source from the content-addressed store, hash-verified

34 self.logger = logger or print
35
36 def start_command(self, command_name):
37 """Start timing a build command"""
38 self.current_command = command_name
39 self.start_times[command_name] = time.time()
40 self.logger(f"Starting '{command_name}' at {datetime.now().strftime('%H:%M:%S')}")
41
42 def end_command(self, command_name):
43 """End timing a build command"""

Callers 3

build.pyFile · 0.80

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected