wvuing/wvuiada/Src/TCADelay.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Utility class which used in logging adapter for counting time delay when calling functions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TCADELAY_H
       
    21 #define TCADELAY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Utility class.
       
    30 *  Used in logging adapter for counting time delay when calling functions.
       
    31 *  Start time is registered in construction.
       
    32 *
       
    33 *  @lib CAAdapter.dll
       
    34 *  @since 1.2
       
    35 */
       
    36 class TCADelay
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         TCADelay();
       
    41 
       
    42     public: // New functions
       
    43 
       
    44         /**
       
    45         * Calculates difference between construction and a call to this function.
       
    46         * @since 1.2
       
    47         * @return TInt difference in microseconds
       
    48         */
       
    49         TInt StopAndReturn( );
       
    50 
       
    51     private:    // Data
       
    52 
       
    53         // Start time
       
    54         TTime iStart;
       
    55 
       
    56         // Stop time
       
    57         TTime iStop;
       
    58 
       
    59     };
       
    60 
       
    61 #endif      // TCADELAY_H
       
    62 
       
    63 // End of File