equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Definitions for small utilities implemented by the adaptation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CORE_AM_TOOLS_H |
|
20 #define CORE_AM_TOOLS_H |
|
21 |
|
22 #include "core_types.h" |
|
23 |
|
24 /** |
|
25 * Class for small platform-dependant helper methods. |
|
26 * |
|
27 * @since S60 v3.1 |
|
28 */ |
|
29 NONSHARABLE_CLASS( core_am_tools_c ) |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Return the current moment of time. |
|
36 * |
|
37 * @since S60 v3.1 |
|
38 * @return The moment of time. |
|
39 */ |
|
40 static u64_t timestamp(); |
|
41 |
|
42 /** |
|
43 * Return random number. |
|
44 * |
|
45 * @since S60 v5.2 |
|
46 * @return Random number. |
|
47 */ |
|
48 static u32_t random(); |
|
49 |
|
50 }; |
|
51 |
|
52 #endif // CORE_AM_TOOLS_H |