nn::fs::ForceEnableLatencyEmulation Function
void ForceEnableLatencyEmulation(
bool isEmulateEndurance = true,
s64 constantWait = 0
);
| Name | Description | |
|---|---|---|
| in | isEmulateEndurance | Emulates the behavior of a non-volatile memory device that has become degraded. (If this is omitted, true is specified by default.)The latencies at runtime are a wait time of 1 to 100 ms for each read, and a wait time of 0 to 380 ms for each write. |
| in | constantWait | Emulates a fixed period of waiting. (If omitted, 0 is specified by default.)If you specify nn::fs::LATENCY_RECOMMENDED_SD_MAX, a latency of 700 ms is emulated for the time in takes in a pure SD Card usage environment when a conflict arises for FS resources with BOSS in the background. |
Emulates the behavior of a non-volatile memory device that has become degraded, and the behavior when a conflict arises for FS resources with a process in the background. (For debugging purposes.)
This emulation is enabled by default for debug and development builds, but disabled by default for release builds. Call this function to explicitly enable emulation for debugging purposes.
Call the nn::fs::ForceDisableLatencyEmulation function to explicitly disable the emulation.
CONFIDENTIAL