wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Functions
Atomic Stopwatch
Collaboration diagram for Atomic Stopwatch:

Data Structures

struct  OSStopWatchAtomic
 

Typedefs

typedef struct OSStopWatchAtomic OSStopWatchAtomic
 

Functions

OSTime OSStopWatchStart (OSStopWatchAtomic *stopWatch)
 Start the stopwatch. More...
 
OSTime OSStopWatchStop (OSStopWatchAtomic *stopWatch)
 Stop the stopwatch. More...
 
OSTime OSStopWatchLap (OSStopWatchAtomic *stopWatch)
 Get the current time on the stopwatch. More...
 
OSTime OSStopWatchReset (OSStopWatchAtomic *stopWatch)
 Stops and resets the stop watch. More...
 

Detailed Description


Data Structure Documentation

◆ OSStopWatchAtomic

struct OSStopWatchAtomic

Definition at line 18 of file stopwatchatomic.h.

Data Fields
OSTime startTime Last time the watch was started.
OSTime totalTime Total time from first start to last stop.

Typedef Documentation

◆ OSStopWatchAtomic

Definition at line 1 of file stopwatchatomic.h.

Function Documentation

◆ OSStopWatchStart()

OSTime OSStopWatchStart ( OSStopWatchAtomic stopWatch)

Start the stopwatch.

Only updates the start time

Returns
total time on stopwatch

◆ OSStopWatchStop()

OSTime OSStopWatchStop ( OSStopWatchAtomic stopWatch)

Stop the stopwatch.

Resets the start time to 0

Returns
total time on stopwatch

◆ OSStopWatchLap()

OSTime OSStopWatchLap ( OSStopWatchAtomic stopWatch)

Get the current time on the stopwatch.

Returns
current time on stopwatch

◆ OSStopWatchReset()

OSTime OSStopWatchReset ( OSStopWatchAtomic stopWatch)

Stops and resets the stop watch.

Clears start and total time

Returns
previous total time