Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

RTDECL ( uint32_t   ) 

Get the current frequency of a CPU.

The CPU must be online.

Returns:
The frequency as MHz. 0 if the CPU is offline or the information is not available.
Parameters:
idCpu The identifier of the CPU.
Get the maximum frequency of a CPU.

The CPU must be online.

Returns:
The frequency as MHz. 0 if the CPU is offline or the information is not available.
Parameters:
idCpu The identifier of the CPU.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Generate a 32-bit unsigned random number in the set [u32First..u32Last].

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
u32First First number in the set.
u32Last Last number in the set.
Generate a 32-bit unsigned random number.

Returns:
The random number.
Parameters:
hRand Handle to the random number generator.
Get the second timestamp relative to program startup.

Returns:
Timestamp relative to program startup.

Todo:
darwin R0 MP (rainy day)

Definition at line 79 of file timeprog.cpp.

{
    AssertMsg(g_u64ProgramStartMilliTS, ("RTR3Init hasn't been called!\n"));
    return (uint32_t)(RTTimeProgramMilliTS() / 1000);
}


Generated by  Doxygen 1.6.0   Back to index