Import Debian changes 20180207-1
[hcoop/debian/mlton.git] / runtime / gc / rusage.h
1 /* Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 */
8
9 #if (defined (MLTON_GC_INTERNAL_FUNCS))
10
11 static inline void rusageZero (struct rusage *ru);
12 static inline void rusagePlusMax (struct rusage *ru1,
13 struct rusage *ru2,
14 struct rusage *ru);
15 static inline void rusageMinusMax (struct rusage *ru1,
16 struct rusage *ru2,
17 struct rusage *ru);
18 static inline uintmax_t rusageTime (struct rusage *ru);
19 static inline void startTiming (struct rusage *ru_start);
20 static uintmax_t stopTiming (struct rusage *ru_start, struct rusage *ru_gc);
21
22 #endif /* (defined (MLTON_GC_INTERNAL_FUNCS)) */