mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +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,
|
||||
)
|
||||
.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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue