Function inside_vm::inside_vm[][src]

pub fn inside_vm() -> bool
Expand description

Compute cpuid cpu cycles average and compare to threshold.

Same as inside_vm_custom(5, 100, 5, 1_000)

Example:

use inside_vm::inside_vm;
let inside: bool = inside_vm::inside_vm();