vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
Instance Methods | Class Methods
VVStopwatch Class Reference

This class is used to measure how long it takes to do things; much easier to work with than NSDate. More...

#import <VVStopwatch.h>

Inherits NSObject.

Instance Methods

(void) - start
 Starts the stopwatch over again.
 
(double) - timeSinceStart
 Returns a float representing the time (in seconds) since the stopwatch was started.
 
(void) - getFullTimeSinceStart:
 Populates the passed timeval struct with the full time vals since start (usec-level accuracy, no rounding)
 
(void) - startInTimeInterval:
 Sets the stopwatch's starting time as an offset to the current time.
 
(void) - copyStartTimeToTimevalStruct:
 Populates the passed timeval struct with the current timeval.
 
(void) - setStartTimeStruct:
 Populates the starting time with the passed timeval struct.
 

Class Methods

(id) + create
 Returns an auto-released instance of VVStopwatch; the stopwatch is started on creation.
 

Detailed Description

This class is used to measure how long it takes to do things; much easier to work with than NSDate.


The documentation for this class was generated from the following files: