TMAllReal.cpp revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
829N/A/** @file
2362N/A *
829N/A * TM - Timeout Manager, Real Time, All Contexts.
829N/A */
829N/A
829N/A/*
2362N/A * Copyright (C) 2006 InnoTek Systemberatung GmbH
829N/A *
2362N/A * This file is part of VirtualBox Open Source Edition (OSE), as
829N/A * available from http://www.virtualbox.org. This file is free software;
829N/A * you can redistribute it and/or modify it under the terms of the GNU
829N/A * General Public License as published by the Free Software Foundation,
829N/A * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
829N/A * distribution. VirtualBox OSE is distributed in the hope that it will
829N/A * be useful, but WITHOUT ANY WARRANTY of any kind.
829N/A *
829N/A * If you received this file as part of a commercial VirtualBox
829N/A * distribution, then only the terms of your commercial VirtualBox
829N/A * license agreement apply instead of the previous paragraph.
829N/A */
2362N/A
2362N/A
2362N/A/*******************************************************************************
829N/A* Header Files *
829N/A*******************************************************************************/
829N/A#define LOG_GROUP LOG_GROUP_TM
829N/A#include <VBox/tm.h>
829N/A#include "TMInternal.h"
829N/A#include <VBox/vm.h>
829N/A#include <iprt/time.h>
829N/A
829N/A
829N/A/**
829N/A * Gets the current TMCLOCK_REAL time.
829N/A *
829N/A * @returns Real time.
829N/A * @param pVM The VM handle.
829N/A */
829N/ATMDECL(uint64_t) TMRealGet(PVM pVM)
829N/A{
829N/A return RTTimeMilliTS();
829N/A}
829N/A
829N/A
829N/A/**
829N/A * Gets the frequency of the TMCLOCK_REAL clock.
829N/A *
829N/A * @returns frequency.
829N/A * @param pVM The VM handle.
829N/A */
829N/ATMDECL(uint64_t) TMRealGetFreq(PVM pVM)
829N/A{
829N/A return TMCLOCK_FREQ_REAL;
829N/A}
829N/A
829N/A