Skip to content
Chase Willden edited this page Apr 29, 2016 · 2 revisions

Purpose

Clock is used to track the time it took to complete operations.

Supported Operations

### Console The base object for tracking track the time it took to complete operations. #### start [Function] Starting the internal clock ##### Example ```go Clock clock = new Clock(); clock.start(); ``` #### stop [Function] Stopping the internal clock ##### Example ```go Clock clock = new Clock(); clock.start(); clock.stop(); ``` ### getDuration [Function] Get the duration of the time between the start and the stop. Return type is a double ##### Example ```go Clock clock = new Clock(); clock.start(); clock.stop(); double duration = clock.getDuration(); ```

Clone this wiki locally