From f9c1896e70bb78487f5e21136d8a6584e2653b47 Mon Sep 17 00:00:00 2001 From: jaortega Date: Sat, 23 Dec 2000 02:23:27 +0000 Subject: (mix_vm_get_uptime) new method (mix_vm_run, mix_vm_exec_next) update the vm clock after execution of instructions --- mixlib/mix_vm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mixlib/mix_vm.h') diff --git a/mixlib/mix_vm.h b/mixlib/mix_vm.h index 62ba34d..91d1d28 100644 --- a/mixlib/mix_vm.h +++ b/mixlib/mix_vm.h @@ -28,6 +28,7 @@ #include "mix_code_file.h" #include "mix_src_file.h" #include "mix_symbol_table.h" +#include "mix_vm_clock.h" /* Comparison flag */ typedef enum { mix_LESS, mix_EQ, mix_GREAT } mix_cmpflag_t; @@ -178,6 +179,10 @@ mix_vm_clear_breakpoint_address (mix_vm_t *vm, guint address) ; extern void mix_vm_clear_all_breakpoints (mix_vm_t *vm); +/* Get the vm uptime, defined as the time spent executing instructions */ +extern mix_time_t +mix_vm_get_uptime (const mix_vm_t *vm); + #endif /* MIX_VM_H */ -- cgit v1.2.3