Objective-C API Library Reference  4.3.0-42-g45f162a
 All Classes Functions Typedefs Properties Pages
Public Functions | Properties | List of all members
PWTimedEventProfiler Class Reference

The PWTimedEventProfiler class is an implementation of the PWProfilerDelegate protocol; it records the time taken to complete an event.

Public Functions

(void) - begin
(NSTimeInterval) - duration
(void) - end
(PWXmlElement *) - profilerInfo


NSTimeInterval beginTime
PWEventPublisher * completedEvent
NSTimeInterval endTime

Methods Descriptions

- (void) begin

Begins recording the event.

- (NSTimeInterval) duration

Returns the duration of the event.

- (void) end

Stops recording the event.

- (PWXmlElement *) profilerInfo

Returns an XML element containing the profiling data; this element is added to the overall profiler information for this client.

Reimplemented from <PWProfilerDelegate>.

Properties Descriptions

- (NSTimeInterval) beginTime

The start time when the event begins to be recorded.

- (PWEventPublisher*) completedEvent

The event that gets dispatched when the event being profiled is completed.

- (NSTimeInterval) endTime

The end time when the event stops to be recorded.