vsgen.util.timer module

This module provides all functionality for the timing actions during an VSG process.

The module defines the class VSGTimer. The VSGTimer is a simple timer to time processes.

class vsgen.util.timer.VSGTimer(message=None)[source]

Bases: object

The VSGTimer class presents a simply timer using Python’s native time module.

pprint(seconds)[source]

Pretty Prints seconds as Hours:Minutes:Seconds.MilliSeconds

Parameters:seconds – The time in seconds.
start(message)[source]

Manually starts timer with the message.

Parameters:message – The display message.
stop(message)[source]

Manually stops timer with the message.

Parameters:message – The display message.