wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlmtools.cpp
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 the License "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:  Small utilities implemented by the adaptation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <e32math.h> 
       
    21 #include "core_am_tools.h"
       
    22 #include "am_debug.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 u64_t core_am_tools_c::timestamp()
       
    30     {
       
    31     TTime currentTime( 0 );
       
    32     currentTime.HomeTime();
       
    33     
       
    34     return currentTime.Int64();   
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 u32_t core_am_tools_c::random()
       
    41     {
       
    42     TTime currentTime( 0 );
       
    43     currentTime.HomeTime();
       
    44     
       
    45     TInt64 seed = currentTime.Int64();
       
    46     return Math::Rand( seed );
       
    47 
       
    48     }