FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Util\TimingLogger Class Reference
Inheritance diagram for Fossology\Lib\Util\TimingLogger:
Inheritance graph
Collaboration diagram for Fossology\Lib\Util\TimingLogger:
Collaboration graph

Public Member Functions

 __construct (Logger $logger)
 
 tic ($watch=self::DEFAULT_WATCH)
 start stopwatch timer More...
 
 toc ($text, $watch=self::DEFAULT_WATCH)
 
 logWithStartTime ($text, $startTime)
 
 logWithStartAndEndTime ($text, $startTime, $endTime)
 

Public Attributes

const DEFAULT_WATCH = 'default'
 

Protected Member Functions

 getTimestamp ()
 

Private Attributes

 $logger
 
 $watchTimes
 
 $startTime
 

Detailed Description

Definition at line 13 of file TimingLogger.php.

Member Function Documentation

◆ logWithStartAndEndTime()

Fossology\Lib\Util\TimingLogger::logWithStartAndEndTime (   $text,
  $startTime,
  $endTime 
)
Parameters
string$text
float$startTime
float$endTime

Definition at line 73 of file TimingLogger.php.

◆ logWithStartTime()

Fossology\Lib\Util\TimingLogger::logWithStartTime (   $text,
  $startTime 
)
Parameters
string$text
float$startTime

Definition at line 62 of file TimingLogger.php.

◆ tic()

Fossology\Lib\Util\TimingLogger::tic (   $watch = self::DEFAULT_WATCH)

start stopwatch timer

Parameters
string$watch

Definition at line 38 of file TimingLogger.php.

◆ toc()

Fossology\Lib\Util\TimingLogger::toc (   $text,
  $watch = self::DEFAULT_WATCH 
)
Parameters
string$text
string$watch

Definition at line 47 of file TimingLogger.php.


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