C# Class BuildingCoder.JtTimer.TimeRegistry

Show file Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
AddTime ( string key, double duration ) : void

Add new duration for specified key.

WriteResults ( string description, double totalTime ) : void

Write the report of the results to a text file.

Private Methods

Method Description
GetPercent ( double value, double totalTime ) : double

Return the percentage based on total time.

Method Details

AddTime() public static method

Add new duration for specified key.
public static AddTime ( string key, double duration ) : void
key string
duration double
return void

WriteResults() public static method

Write the report of the results to a text file.
public static WriteResults ( string description, double totalTime ) : void
description string
totalTime double
return void