1    /* 
     2     *  Copyright (c) 2008 Texas Instruments and others.
     3     *  All rights reserved. This program and the accompanying materials
     4     *  are made available under the terms of the Eclipse Public License v1.0
     5     *  which accompanies this distribution, and is available at
     6     *  http://www.eclipse.org/legal/epl-v10.html
     7     * 
     8     *  Contributors:
     9     *      Texas Instruments - initial implementation
    10     * 
    11     * */
    12    /*!
    13     *  ======== Clock ========
    14     *  Elapsed time measurement functions
    15     */
    16    metaonly module Clock {
    17    
    18        /*!
    19         *  ======== getElapsedTime ========
    20         *  Get elapsed time from last reset
    21         */
    22        function getElapsedTime();
    23    
    24        /*!
    25         *  ======== enable ========
    26         *  Enable output from this module
    27         *
    28         *  If false, all output is suppressed
    29         */
    30        config Bool enable = false;
    31    
    32        /*!
    33         *  ======== showMemory ========
    34         *  Enable memory usage output
    35         *
    36         *  If false, memory usage output is suppressed
    37         */
    38        config Bool showMemory = false;
    39    
    40        /*!
    41         *  ======== print ========
    42         *  Report elapsed time from last reset
    43         */
    44        void print(String msg);
    45    
    46        /*!
    47         *  ======== reset ========
    48         *  Set elapsed time to 0
    49         */
    50        void reset();
    51    }
    52    /*
    53     *  @(#) xdc.services.global; 1, 0, 0,289; 8-20-2010 17:21:12; /db/ztree/library/trees/xdc/xdc-v48x/src/packages/
    54     */
    55