kerneltest/e32test/dll/t_start1.cpp
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32test\dll\t_start1.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <e32std.h>
       
    19 #include <e32std_private.h>
       
    20 
       
    21 _LIT(KPanicCat,"Start1");
       
    22 #define INIT_VAL	0xb504f334
       
    23 
       
    24 #define test(x)	((void)((x)||(User::Panic(KPanicCat,__LINE__),0)))
       
    25 
       
    26 class TStartTime
       
    27 	{
       
    28 public:
       
    29 	TStartTime();
       
    30 public:
       
    31 	TUint32 iStartTime;
       
    32 	};
       
    33 
       
    34 TStartTime StartTime;
       
    35 TUint32 InitData=INIT_VAL;
       
    36 
       
    37 TStartTime::TStartTime()
       
    38 	{
       
    39 	test(InitData==INIT_VAL);
       
    40 	test(iStartTime==0);
       
    41 		
       
    42 	iStartTime=User::TickCount();
       
    43 	User::After(30000);
       
    44 	}
       
    45 
       
    46 EXPORT_C TUint32 GetStartTime1()
       
    47 	{
       
    48 	return StartTime.iStartTime;
       
    49 	}