File: methodtime.h

package info (click to toggle)
jmp 0.48-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,692 kB
  • ctags: 1,732
  • sloc: ansic: 13,985; sh: 8,611; makefile: 526; yacc: 318; java: 18
file content (29 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef METHODTIME_H__
#define METHODTIME_H__

#include <jmp.h>

/** This is a placeholder for the time taken by a method.
 */
struct methodtime {
    jlong tv;                /* time (nanos) taken by this method */
    jlong tv_hold;           /* time taken by called methods. */
    method* method;	     /* The ptr of the method running. */
    method* filtered_method; /* The current filtered method. */
};

/** Check if a methodtime is zero 
 * @param mt the methodtime to check.
 * @return true if all time values of mt is zero.
 */
int methodtime_is_zero (methodtime* mt);

#endif /* METHODTIME_H__ */

/* Emacs Local Variables: */
/* Emacs mode:C */
/* Emacs c-indentation-style:"gnu" */
/* Emacs c-hanging-braces-alist:((brace-list-open)(brace-entry-open)(defun-open after)(substatement-open after)(block-close . c-snug-do-while)(extern-lang-open after)) */
/* Emacs c-cleanup-list:(brace-else-brace brace-elseif-brace space-before-funcall) */
/* Emacs c-basic-offset:4 */
/* Emacs End: */