VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMAll/TMAllReal.cpp@ 101309

Last change on this file since 101309 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 1.8 KB
Line 
1/* $Id: TMAllReal.cpp 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * TM - Timeout Manager, Real Time, All Contexts.
4 */
5
6/*
7 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28
29/*********************************************************************************************************************************
30* Header Files *
31*********************************************************************************************************************************/
32#define LOG_GROUP LOG_GROUP_TM
33#include <VBox/vmm/tm.h>
34#include "TMInternal.h"
35#include <VBox/vmm/vmcc.h>
36#include <iprt/time.h>
37
38
39/**
40 * Gets the current TMCLOCK_REAL time.
41 *
42 * @returns Real time.
43 * @param pVM The cross context VM structure.
44 */
45VMM_INT_DECL(uint64_t) TMRealGet(PVM pVM)
46{
47 NOREF(pVM);
48 return RTTimeMilliTS();
49}
50
51
52/**
53 * Gets the frequency of the TMCLOCK_REAL clock.
54 *
55 * @returns frequency.
56 * @param pVM The cross context VM structure.
57 */
58VMM_INT_DECL(uint64_t) TMRealGetFreq(PVM pVM)
59{
60 NOREF(pVM);
61 return TMCLOCK_FREQ_REAL;
62}
63
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette