change name of cycle measure function and remove from public api

This commit is contained in:
Corwin 2023-08-05 13:11:22 +01:00
parent d4c1dc1730
commit 3430668bdd
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -289,9 +289,9 @@ pub mod test_runner {
mgba::DebugLevel::Info,
)
.unwrap();
mgba::number_of_cycles_tagged(785);
mgba::test_runner_measure_cycles();
self(gba);
mgba::number_of_cycles_tagged(785);
mgba::test_runner_measure_cycles();
assert!(
unsafe { agb_alloc::number_of_blocks() } < 2,

View file

@ -28,8 +28,8 @@ fn is_running_in_mgba() -> bool {
const NUMBER_OF_CYCLES: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x04FF_F800) };
pub fn number_of_cycles_tagged(tag: u16) {
NUMBER_OF_CYCLES.set(tag);
pub(crate) fn test_runner_measure_cycles() {
NUMBER_OF_CYCLES.set(0);
}
pub struct Mgba {