SAP ABAP Class /GC1/CL_STOPWATCH (Stopwatch)
Hierarchy
SAP_ABA (Software Component) Cross-Application Component
   CA-GTF-TS-PGC (Application Component) Persistent Garbage Collector
     /GC1/FRAMEWORK (Package) Garbage Collector Framework
Properties
Class /GC1/CL_STOPWATCH  
Short Description Stopwatch    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package /GC1/FRAMEWORK   Garbage Collector Framework 
Created 20060210   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 /GC1/CL_STOPWATCH Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class /GC1/CL_STOPWATCH has no interface implemented.
Friends
Class /GC1/CL_STOPWATCH has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CON_UNIT_MICROSECONDS Constant Public Type reference (TYPE) C 'C' Microseconds 20060223
2 CON_UNIT_MILLISECONDS Constant Public Type reference (TYPE) C 'M' Milliseconds 20060223
3 CON_UNIT_SECONDS Constant Public Type reference (TYPE) C 'S' Seconds 20060223
4 FLG_RUNNING Instance attribute Public Type reference (TYPE) C 20060210
5 LAST_DIFF Instance attribute Private Type reference (TYPE) TYP_TIME 20060215
6 STARTTIME Instance attribute Private Type reference (TYPE) TIMESTAMPL UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) 20060210
7 STOPTIME Instance attribute Private Type reference (TYPE) TIMESTAMPL UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) 20060210
8 S_MICRO_DAY Static Attribute Private Type reference (TYPE) TYP_MICRO Day as Microseconds 20060223
9 S_REF_CURRENT Static Attribute Public Object reference (TYPE REF TO) /GC1/CL_STOPWATCH Stopwatch 20060210
10 TIME Instance attribute Private Type reference (TYPE) TYP_TIME Time Already Used 20060210
Methods
# Method Level Visibility Method type Description Created on
1 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20060222
2 COMPUTE_MICRO_DIFF Static method Private Method 20060223
3 CONVERT_TIMESTAMP_TO_STRUC Static method Private Method 20060223
4 CONVERT_TO_MICRO Static method Private Method 20060223
5 GET_DIFF_DAYS Static method Private Method Returns Days Between Two Dates 20060223
6 GET_MONTH_DAYS Static method Private Method Delivers Days for a Month 20060223
7 GET_TIME Instance method Public Method Delivers Current Clocked Time 20060210
8 GET_TIMESTAMP_DIFF Static method Private Method 20060223
9 GET_TIMESTRUC_DIFF Static method Private Method 20060223
10 GET_YEAR_DAYS Static method Private Method Delivers Days for a Year 20060223
11 RESET Instance method Public Method Initialization 20060222
12 START Instance method Public Method 20060222
13 STOP Instance method Public Method Clock Measurement 20060210
14 S_CREATE Static method Public Method Generate Stoppwatch 20060210
Events
Class /GC1/CL_STOPWATCH has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TYP_MICRO Private See coding 20060223 typ_micro(16) type p decimals 4
2 TYP_STR_DATE Private See coding 20060223 BEGIN OF typ_str_date, year(4) TYPE n, month(2) TYPE n, day(2) TYPE n, END OF typ_str_date
3 TYP_STR_TIME Private See coding 20060223 BEGIN OF typ_str_time, year(4) TYPE n, month(2) TYPE n, day(2) TYPE n, hour(2) TYPE n, minute(2) TYPE n, second(2) TYPE n, nanos(7) TYPE n, date type sy-datum, END OF typ_str_time
4 TYP_TIME Public See coding 20060222 TYP_TIME(16) type P DECIMALS 0
Method Signatures

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class /GC1/CL_STOPWATCH has no parameter.
Method CLASS_CONSTRUCTOR on class /GC1/CL_STOPWATCH has no exception.

Method COMPUTE_MICRO_DIFF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_STR_TIME1 Call by reference Type reference (TYPE) TYP_STR_TIME 20060223
2 Importing I_STR_TIME2 Call by reference Type reference (TYPE) TYP_STR_TIME 20060223
3 Returning R_MICRODIFF Value transfer Type reference (TYPE) TYP_MICRO 20060223

Method COMPUTE_MICRO_DIFF on class /GC1/CL_STOPWATCH has no exception.

Method CONVERT_TIMESTAMP_TO_STRUC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_TIMESTAMP Call by reference Type reference (TYPE) TIMESTAMPL UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) 20060223
2 Returning R_STR_TIME Value transfer Type reference (TYPE) TYP_STR_TIME 20060223

Method CONVERT_TIMESTAMP_TO_STRUC on class /GC1/CL_STOPWATCH has no exception.

Method CONVERT_TO_MICRO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_STR_TIME Call by reference Type reference (TYPE) TYP_STR_TIME 20060223
2 Returning R_MICRO Value transfer Type reference (TYPE) TYP_MICRO 20060223

Method CONVERT_TO_MICRO on class /GC1/CL_STOPWATCH has no exception.

Method GET_DIFF_DAYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_DATE1 Call by reference Type reference (TYPE) SY-DATUM Aktuelles Datum des Applikationsservers 20060223
2 Importing I_DATE2 Call by reference Type reference (TYPE) SY-DATUM Aktuelles Datum des Applikationsservers 20060223
3 Returning R_DAYS Value transfer Type reference (TYPE) I 20060223

Method GET_DIFF_DAYS on class /GC1/CL_STOPWATCH has no exception.

Method GET_MONTH_DAYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_MONTH Call by reference Type reference (TYPE) TYP_STR_DATE-MONTH 20060223
2 Importing I_YEAR Call by reference Type reference (TYPE) TYP_STR_DATE-YEAR 20060223
3 Returning R_DAYS Value transfer Type reference (TYPE) I 20060223

Method GET_MONTH_DAYS on class /GC1/CL_STOPWATCH has no exception.

Method GET_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_FLG_LAST_DIFF Value transfer Type reference (TYPE) C 20060215
2 Importing I_UNIT Value transfer Type reference (TYPE) C /GC1/CL_STOPWATCH=>CON_UNIT_MILLISECONDS 20060223
3 Returning R_TIME Value transfer Type reference (TYPE) TYP_TIME Index interner Tabellen 20060210

Method GET_TIME on class /GC1/CL_STOPWATCH has no exception.

Method GET_TIMESTAMP_DIFF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_TIMESTAMP1 Value transfer Type reference (TYPE) TIMESTAMPL UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) 20060223
2 Importing I_TIMESTAMP2 Value transfer Type reference (TYPE) TIMESTAMPL UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) 20060223
3 Returning R_DIFF Value transfer Type reference (TYPE) TYP_TIME Index interner Tabellen 20060223

Method GET_TIMESTAMP_DIFF on class /GC1/CL_STOPWATCH has no exception.

Method GET_TIMESTRUC_DIFF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_STR_T1 Value transfer Type reference (TYPE) TYP_STR_TIME UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) 20060223
2 Importing I_STR_T2 Value transfer Type reference (TYPE) TYP_STR_TIME UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) 20060223
3 Returning R_DIFF Value transfer Type reference (TYPE) TYP_TIME Index interner Tabellen 20060223

Method GET_TIMESTRUC_DIFF on class /GC1/CL_STOPWATCH has no exception.

Method GET_YEAR_DAYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_YEAR Call by reference Type reference (TYPE) TYP_STR_DATE-YEAR 20060223
2 Returning R_DAYS Value transfer Type reference (TYPE) I 20060223

Method GET_YEAR_DAYS on class /GC1/CL_STOPWATCH has no exception.

Method RESET Signature

Method RESET on class /GC1/CL_STOPWATCH has no parameter.
Method RESET on class /GC1/CL_STOPWATCH has no exception.

Method START Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_FLG_RESET Value transfer Type reference (TYPE) C 20060223

Method START on class /GC1/CL_STOPWATCH has no exception.

Method STOP Signature

Method STOP on class /GC1/CL_STOPWATCH has no parameter.
Method STOP on class /GC1/CL_STOPWATCH has no exception.

Method S_CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_REF_INSTANCE Value transfer Object reference (TYPE REF TO) /GC1/CL_STOPWATCH 20060210

Method S_CREATE on class /GC1/CL_STOPWATCH has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 710