tstTime-3.cpp revision a4d7fc6f54717c342281099fe14f5666be9b7921
/* $Id$ */
/** @file
* innotek Portable Runtime Testcase - Simple RTTime test.
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#ifdef RT_OS_WINDOWS
# include <Windows.h>
#else /* posix */
#endif
{
#ifdef RT_OS_WINDOWS
return u64 * 100;
/** @todo fix a different timesource on l4. */
return RTTimeNanoTS();
#else /* posix */
#endif
}
{
RTR3Init();
if (argc <= 1)
{
RTPrintf("tstTime-3: usage: tstTime-3 <seconds> [seconds2 [..]]\n");
return 1;
}
RTPrintf("tstTime-3: Testing difference between RTTimeNanoTS() and OS time...\n");
for (int i = 1; i < argc; i++)
{
if (RT_FAILURE(rc))
{
return 1;
}
}
return 0;
}