LibreOffice Module salhelper (master) 1
Public Member Functions | List of all members
salhelper::TTimeValue Struct Reference

Helper class for easier manipulation with TimeValue. More...

#include <timer.hxx>

Inheritance diagram for salhelper::TTimeValue:
[legend]
Collaboration diagram for salhelper::TTimeValue:
[legend]

Public Member Functions

 TTimeValue ()
 
 TTimeValue (sal_uInt32 Secs, sal_uInt32 Nano)
 
 TTimeValue (sal_uInt32 MilliSecs)
 
 TTimeValue (const TimeValue &rTimeValue)
 
void SAL_CALL normalize ()
 
void SAL_CALL addTime (const TTimeValue &Delta)
 
bool SAL_CALL isEmpty () const
 

Detailed Description

Helper class for easier manipulation with TimeValue.

Times are seconds in UTC since 01.01.1970

Definition at line 38 of file timer.hxx.

Constructor & Destructor Documentation

◆ TTimeValue() [1/4]

salhelper::TTimeValue::TTimeValue ( )
inline

Definition at line 40 of file timer.hxx.

References Seconds.

◆ TTimeValue() [2/4]

salhelper::TTimeValue::TTimeValue ( sal_uInt32  Secs,
sal_uInt32  Nano 
)
inline

Definition at line 46 of file timer.hxx.

References normalize(), and Seconds.

◆ TTimeValue() [3/4]

salhelper::TTimeValue::TTimeValue ( sal_uInt32  MilliSecs)
inline

Definition at line 54 of file timer.hxx.

References normalize(), and Seconds.

◆ TTimeValue() [4/4]

salhelper::TTimeValue::TTimeValue ( const TimeValue &  rTimeValue)
inline

Definition at line 62 of file timer.hxx.

References normalize(), and Seconds.

Member Function Documentation

◆ addTime()

void SAL_CALL salhelper::TTimeValue::addTime ( const TTimeValue Delta)
inline

Definition at line 79 of file timer.hxx.

References Delta, normalize(), and Seconds.

Referenced by salhelper::Timer::addTime(), and salhelper::Timer::setRemainingTime().

◆ isEmpty()

bool SAL_CALL salhelper::TTimeValue::isEmpty ( ) const
inline

Definition at line 87 of file timer.hxx.

References Seconds.

Referenced by salhelper::TimerManager::checkForTimeout(), and salhelper::Timer::start().

◆ normalize()

void SAL_CALL salhelper::TTimeValue::normalize ( )
inline

Definition at line 70 of file timer.hxx.

References Seconds.

Referenced by salhelper::Timer::setAbsoluteTime().


The documentation for this struct was generated from the following file: