nn::fs::InitializeLatencyEmulation Function
void InitializeLatencyEmulation(
void
);
None.
Initializes the feature for emulating 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.
Be absolutely sure to call this initialization function because the emulation feature cannot be enabled unless you do.
You can enable/disable this feature in the Config settings.
In the retail product environment, this feature is invariably disabled, so there is no problem including a call to this function in the product code.
Total latency is the sum of the routinely-applied delay time plus a random delay time determined separately for each access event.
A randomly determined delay time is enabled only if the debug mode setting is enabled by Config.
For each Read/TryRead, the range is 0 ms to 100 ms. For each Write/TryWrite, the range is 0 ms to 380 ms. If disabled, it is 0.
The routinely-applied delay time takes the value configured in the FS Latency Emulation settings in Config.
The table shows latency times in the development environment.
| Config settings | Delay time | |
|---|---|---|
| Debug Mode | FS Latency Emulation | |
| enable | Some time other than 0 ms | Random delay + routine delay |
| enable | 0 ms | Random delay only |
| disable | Some time other than 0 ms | Routine delay only |
| disable | 0 ms | None |
CONFIDENTIAL