mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
change name of cycle measure function and remove from public api
This commit is contained in:
parent
d4c1dc1730
commit
3430668bdd
|
@ -289,9 +289,9 @@ pub mod test_runner {
|
||||||
mgba::DebugLevel::Info,
|
mgba::DebugLevel::Info,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
mgba::number_of_cycles_tagged(785);
|
mgba::test_runner_measure_cycles();
|
||||||
self(gba);
|
self(gba);
|
||||||
mgba::number_of_cycles_tagged(785);
|
mgba::test_runner_measure_cycles();
|
||||||
|
|
||||||
assert!(
|
assert!(
|
||||||
unsafe { agb_alloc::number_of_blocks() } < 2,
|
unsafe { agb_alloc::number_of_blocks() } < 2,
|
||||||
|
|
|
@ -28,8 +28,8 @@ fn is_running_in_mgba() -> bool {
|
||||||
|
|
||||||
const NUMBER_OF_CYCLES: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x04FF_F800) };
|
const NUMBER_OF_CYCLES: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x04FF_F800) };
|
||||||
|
|
||||||
pub fn number_of_cycles_tagged(tag: u16) {
|
pub(crate) fn test_runner_measure_cycles() {
|
||||||
NUMBER_OF_CYCLES.set(tag);
|
NUMBER_OF_CYCLES.set(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Mgba {
|
pub struct Mgba {
|
||||||
|
|
Loading…
Reference in a new issue