HDK
|
#include <PDG_WorkItemStats.h>
Public Types | |
enum | StatType { eQueueTime, eScheduleTime, eCookStartTime, eCookEndTime, eFileSize, eStatCount } |
Enumeration of stats stored in this object. More... | |
Public Member Functions | |
PDG_WorkItemStats () | |
Constructs and zero-initializes the stat object. More... | |
void | reset () |
Resets all stats on the work item. More... | |
fpreal | getStat (StatType stat) const |
Returns the current value of the specified stat type. More... | |
fpreal | setStat (StatType stat, fpreal value) |
Sets the value of the specified stat type. More... | |
fpreal | setTimeStat (StatType stat) |
Sets the value of the specified stat to the current time. More... | |
fpreal | cookDuration () const |
void | setServiceClient (const UT_StringHolder &client) |
Sets the service client used to cook the work item. More... | |
const UT_StringHolder & | serviceClient () const |
Definition at line 21 of file PDG_WorkItemStats.h.
Enumeration of stats stored in this object.
Definition at line 25 of file PDG_WorkItemStats.h.
PDG_WorkItemStats::PDG_WorkItemStats | ( | ) |
Constructs and zero-initializes the stat object.
fpreal PDG_WorkItemStats::cookDuration | ( | ) | const |
Returns the cook duration for the work item. e.g. the time spent between starting and stopping cooking
Returns the current value of the specified stat type.
void PDG_WorkItemStats::reset | ( | ) |
Resets all stats on the work item.
|
inline |
Returns the service client name used to cook this work item, or empty string if the work item didn't cook using services
Definition at line 76 of file PDG_WorkItemStats.h.
|
inline |
Sets the service client used to cook the work item.
Definition at line 71 of file PDG_WorkItemStats.h.
Sets the value of the specified stat type.
Sets the value of the specified stat to the current time.