emergent 8.2.2 TimeUsed Class Reference
emergent 8.2.2   Home · Wiki Docs For: TimeUsed · Emergent Help Browser 

TimeUsed Class Reference

computes amount of time used for a given process: start the timer at the start, then do EndTimer and it computes the amount used

See for more info: Wiki Docs For: TimeUsed

 #include <TimeUsed>

defined at: /mnt/ssd/grey/local/include/Emergent/TimeUsed.h :30-50

Inherits From: taNBase, taOBase, taBase

Inherited By: TimeUsed*, TimeUsed&, const TimeUsed

Index: SubTypes, Members, Methods, Static Members, Static Methods, Expert Members, Expert Methods

Sub Types


SubType Documentation


Regular (preferred) Member and Method Documentation

Members

Member Category: _NoCategory

Member Category: taBase

Methods

Method Category: ObjectMgmt

Method Category: UserData

Method Category: _NoCategory


Member Documentation

Member Category: _NoCategory

TimeUsed::n_used : int

number of individual times the timer has been used without resetting accumulation

TimeUsed::s_used : double

total number of seconds used

Member Category: taBase

taNBase::name : taString

name of the object


Method Documentation

Method Category: ObjectMgmt

taString taNBase::GetName ( )

Get the name of the object

Show Source Code

bool taNBase::HasName ( )

does the object have a name field that can be set?

Show Source Code

void taNBase::MakeNameUnique ( )

make sure my name is unique relative to names of objects associated with my owner (e.g., if it is a list object), typically because my name has changed, and owner needs to ensure that all names are unique

Show Source Code

bool taNBase::SetName ( taString& nm )

Set the object's name

Show Source Code

Method Category: UserData

void taOBase::RemoveAllUserData ( )

get rid of our user data list entirely -- this is done automatically when saving something that has no user data items, but you can also force it with this method -- deletes the whole list

Show Source Code

Method Category: _NoCategory

bool taNBase::AddFromTemplate ( taBase* obj, bool& is_acceptable )

handles drops from toolbar - when adding an object to a program, network, etc - e.g. dropping generic data table onto a program - set is_acceptable for objects 'not handled' but which are acceptable

Show Source Code

void TimeUsed::EndTimer ( )

record the current time as the ending time, and compute difference as the time used

Show Source Code

taBase* taOBase::GetOwner ( )

Show Source Code

taString TimeUsed::GetString ( )

get string output of time used as seconds and fractions of seconds

Show Source Code

TypeDef* TimeUsed::GetTypeDef ( )

Show Source Code

void TimeUsed::ResetUsed ( )

reset time used information

Show Source Code

void TimeUsed::StartTimer ( bool reset_used = true )

record the current time as the starting time, and optionally reset the time used information

Show Source Code

taSigLink** taOBase::addr_sig_link ( )

Show Source Code

Static Member and Method Documentation

Static Members

Static Methods


Static Method Documentation


Expert Member and Method Documentation

Expert Members

Expert Member Category: _NoCategory

Expert Member Category: taBase

Expert Methods

Expert Method Category: UserData


Expert Member Documentation

Expert Member Category: _NoCategory

TimeUsed::end : taTime

ending time

TimeUsed::start : taTime

starting time

TimeUsed::used : taTime

total time used

Expert Member Category: taBase

taOBase::owner : taBase*

pointer to owner

taOBase::user_data_ : UserDataItem_List*

storage for user data (created if needed) DO NOT ACCESS this list directly -- use the GetUserData / SetUserData etc interface!


Expert Method Documentation

Expert Method Category: UserData

UserDataItem_List* taOBase::GetUserDataList ( bool force = false )

gets the userdatalist for this class

Show Source Code


Copyright © 2017Regents of the University of Colorado, Carnegie Mellon University, Princeton University.
emergent 8.2.2