* aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
[deliverable/binutils-gdb.git] / sim / common / sim-basics.h
index f3db0e0b88f4eb268af048d4a4bf2093e331efb5..00f83a1a94c619c6caaa05e22ed8790a040b7649 100644 (file)
@@ -65,6 +65,14 @@ void *zalloc (unsigned long size);
 void zfree(void*);
 
 
+/* Utilities for elapsed time reporting.  */
+/* Opaque type, known only inside sim_elapsed_time_foo fns.  */
+typedef unsigned long SIM_ELAPSED_TIME;
+/* Get reference point for future call to sim_time_elapsed.  */
+SIM_ELAPSED_TIME sim_elapsed_time_get (void);
+/* Elapsed time in milliseconds since START.  */
+unsigned long sim_elapsed_time_since (SIM_ELAPSED_TIME start);
+
 
 /* Global types that code manipulates */
 
This page took 0.022797 seconds and 4 git commands to generate.