blob: cfdccbe63fc231c3ac42cdf49a08b2eba221f84b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* blogc: A blog compiler.
* Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
*
* This program can be distributed under the terms of the BSD License.
* See the file LICENSE.
*/
#ifndef ___RUSAGE_H
#define ___RUSAGE_H
long long blogc_rusage_get_cpu_time(void); // in microseconds
long blogc_rusage_get_memory(void); // in kilobytes
char* blogc_rusage_format_cpu_time(long long time);
char* blogc_rusage_format_memory(long mem);
char* blogc_rusage_cpu_time(void);
char* blogc_rusage_memory(void);
#endif /* ___RUSAGE_H */
|