summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_vm.h
diff options
context:
space:
mode:
authorjaortega <jaortega>2000-12-23 02:23:27 +0000
committerjaortega <jaortega>2000-12-23 02:23:27 +0000
commitf9c1896e70bb78487f5e21136d8a6584e2653b47 (patch)
tree735c1e2f9c25ac24ae6e4a459855e9d8eebab8f5 /mixlib/mix_vm.h
parentcaa95f92c73f1fd81db0862d2bf6989c81cd4607 (diff)
downloadmdk-f9c1896e70bb78487f5e21136d8a6584e2653b47.tar.gz
mdk-f9c1896e70bb78487f5e21136d8a6584e2653b47.tar.bz2
(mix_vm_get_uptime) new method
(mix_vm_run, mix_vm_exec_next) update the vm clock after execution of instructions
Diffstat (limited to 'mixlib/mix_vm.h')
-rw-r--r--mixlib/mix_vm.h5
1 files changed, 5 insertions, 0 deletions
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 */