SAP ABAP Class CL_FS_STOPWATCH (Stopwatch)
Hierarchy
SAP_ABA (Software Component) Cross-Application Component
   CA-FS (Application Component) Financial Services
     FS_TIME_SERVICES (Package) Small, Reuseable Units in Context of Time
Properties
Class CL_FS_STOPWATCH  
Short Description Stopwatch    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package FS_TIME_SERVICES   Small, Reuseable Units in Context of Time 
Created 20061113   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 CL_FS_STOPWATCH has no interface implemented.
Friends
Class CL_FS_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 20061113
2 CON_UNIT_MILLISECONDS Constant Public Type reference (TYPE) C 'M' Milliseconds 20061113
3 CON_UNIT_SECONDS Constant Public Type reference (TYPE) C 'S' Seconds 20061113
4 FLG_RUNNING Instance attribute Public Type reference (TYPE) C 20061113
5 LAST_DIFF Instance attribute Private Type reference (TYPE) TYP_TIME 20061113
6 STARTTIME Instance attribute Private Type reference (TYPE) TIMESTAMPL UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) 20061113
7 STOPTIME Instance attribute Private Type reference (TYPE) TIMESTAMPL UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun) 20061113
8 S_MICRO_DAY Static Attribute Private Type reference (TYPE) TYP_MICRO Day as Microseconds 20061113
9 S_REF_CURRENT Static Attribute Public Object reference (TYPE REF TO) CL_FS_STOPWATCH Stopwatch 20061113
10 TAB_TIME_LIST Instance attribute Private Type reference (TYPE) TYP_TAB_TIME_LIST 20061117
11 TIME Instance attribute Private Type reference (TYPE) TYP_TIME Time Already Used 20061113
Methods
# Method Level Visibility Method type Description Created on
1 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20061113
2 COMPUTE_MICRO_DIFF Static method Private Method 20061113
3 CONVERT_TIMESTAMP_TO_STRUC Static method Private Method 20061113
4 CONVERT_TO_MICRO Static method Private Method 20061113
5 GET_DIFF_DAYS Static method Private Method Returns Days Between Two Dates 20061113
6 GET_MONTH_DAYS Static method Private Method Delivers Days for a Month 20061113
7 GET_TIME Instance method Public Method Delivers Current Clocked Time 20061113
8 GET_TIMESTAMP_DIFF Static method Private Method 20061113
9 GET_TIMESTRUC_DIFF Static method Private Method 20061113
10 GET_YEAR_DAYS Static method Private Method Delivers Days for a Year 20061113
11 RESET Instance method Public Method Initialization 20061113
12 SAVE_TIME Instance method Public Method Saves Current Time Under an ID 20061117
13 START Instance method Public Method Start the Clock 20061113
14 STOP Instance method Public Method Stop the Clock 20061113
15 S_CREATE Static method Public Method Generate Stoppwatch 20061113
16 WRITE Instance method Public Method Time Output 20061113
17 WRITE_RATIO Instance method Public Method Displays Relationship 20061117
Events
Class CL_FS_STOPWATCH has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TYP_MICRO Private See coding 20061113 typ_micro(16) type p decimals 4
2 TYP_STR_DATE Private See coding 20061113 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 20061113 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_STR_TIME_LIST Private See coding 20061117 BEGIN OF typ_str_time_list, ID type c LENGTH 50, time type TYP_TIMe, END OF typ_str_time_list
5 TYP_TAB_TIME_LIST Private See coding 20061117 typ_tab_time_list type STANDARD TABLE OF TYP_STR_time_LIST with DEFAULT KEY
6 TYP_TIME Public See coding 20061113 TYP_TIME(16) type P DECIMALS 0
Method Signatures

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_FS_STOPWATCH has no parameter.
Method CLASS_CONSTRUCTOR on class CL_FS_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 20061113
2 Importing I_STR_TIME2 Call by reference Type reference (TYPE) TYP_STR_TIME 20061113
3 Returning R_MICRODIFF Value transfer Type reference (TYPE) TYP_MICRO 20061113

Method COMPUTE_MICRO_DIFF on class CL_FS_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) 20061113
2 Returning R_STR_TIME Value transfer Type reference (TYPE) TYP_STR_TIME 20061113

Method CONVERT_TIMESTAMP_TO_STRUC on class CL_FS_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 20061113
2 Returning R_MICRO Value transfer Type reference (TYPE) TYP_MICRO 20061113

Method CONVERT_TO_MICRO on class CL_FS_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 20061113
2 Importing I_DATE2 Call by reference Type reference (TYPE) SY-DATUM Aktuelles Datum des Applikationsservers 20061113
3 Returning R_DAYS Value transfer Type reference (TYPE) I 20061113

Method GET_DIFF_DAYS on class CL_FS_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 20061113
2 Importing I_YEAR Call by reference Type reference (TYPE) TYP_STR_DATE-YEAR 20061113
3 Returning R_DAYS Value transfer Type reference (TYPE) I 20061113

Method GET_MONTH_DAYS on class CL_FS_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 20061113
2 Importing I_UNIT Value transfer Type reference (TYPE) C CL_FS_STOPWATCH=>CON_UNIT_MILLISECONDS 20061113
3 Returning R_TIME Value transfer Type reference (TYPE) TYP_TIME Index interner Tabellen 20061113

Method GET_TIME on class CL_FS_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) 20061113
2 Importing I_TIMESTAMP2 Value transfer Type reference (TYPE) TIMESTAMPL UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) 20061113
3 Returning R_DIFF Value transfer Type reference (TYPE) TYP_TIME Index interner Tabellen 20061113

Method GET_TIMESTAMP_DIFF on class CL_FS_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) 20061113
2 Importing I_STR_T2 Value transfer Type reference (TYPE) TYP_STR_TIME UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) 20061113
3 Returning R_DIFF Value transfer Type reference (TYPE) TYP_TIME Index interner Tabellen 20061113

Method GET_TIMESTRUC_DIFF on class CL_FS_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 20061113
2 Returning R_DAYS Value transfer Type reference (TYPE) I 20061113

Method GET_YEAR_DAYS on class CL_FS_STOPWATCH has no exception.

Method RESET Signature

Method RESET on class CL_FS_STOPWATCH has no parameter.
Method RESET on class CL_FS_STOPWATCH has no exception.

Method SAVE_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ID Value transfer Type reference (TYPE) CSEQUENCE 20061117

Method SAVE_TIME on class CL_FS_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 20061113

Method START on class CL_FS_STOPWATCH has no exception.

Method STOP Signature

Method STOP on class CL_FS_STOPWATCH has no parameter.
Method STOP on class CL_FS_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) CL_FS_STOPWATCH Stoppuhr 20061113

Method S_CREATE on class CL_FS_STOPWATCH has no exception.

Method WRITE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_TEXT Value transfer Type reference (TYPE) CSEQUENCE 20061113
2 Importing I_UNIT Value transfer Type reference (TYPE) C CON_UNIT_MILLISECONDS 20061113

Method WRITE on class CL_FS_STOPWATCH has no exception.

Method WRITE_RATIO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ID1 Call by reference Type reference (TYPE) CSEQUENCE 20061117
2 Importing I_ID2 Call by reference Type reference (TYPE) CSEQUENCE 20061117

Method WRITE_RATIO on class CL_FS_STOPWATCH has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 710