# microsleep

### Function

> microsleep

### Syntax

> microsleep( MicroSecond );

### Parameters

**\[MicroSecond]**

The time to sleep (pause the execution) in microseconds.

### Description

Sleeps (pauses the execution) the core execution for a specified duration in microseconds.

### Return value

None

### Examples

The following code uses the `microsleep` function to pause execution for 100 microseconds each time the hook is triggered at the target function.

```clike
!epthook 0x7ff129000 script {
    microsleep(100); // pause (sleep) the execution for 100 microseconds
}
```

### Remarks

This function pauses only the core on which it is executed. For example, if used within an event, it will pause only the executing core, not any others.

### Related

None


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hyperdbg.org/commands/scripting-language/functions/timings/microsleep.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
