# quickstart.py is python-3.7.4 source file
from stopwatch import Stopwatch
from stopwatch import StopwatchManager
# create a stopwatch manager
demo_manager: StopwatchManager = StopwatchManager(
# Start timing after creating and adding a stopwatch instance to the manager
demo_manager.create('guide::demo1').start()
# simulated program time-consuming operation
# get the stopwatch instance from the manager and stop timing.
demo_manager.get('guide::demo1').stop()
# total time duration after getting a stopwatch instance from the manager
print(demo_manager.get('guide::demo1').get_watch())
# remove the stopwatch instance from the manager.
demo_manager.remove('guide::demo1')
# define virtual main function
if __name__ == '__main__':