swift
cputime.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_CPUTIME_H
7 #define SWIFT_MISC_CPUTIME_H
8 
9 #include "misc/swiftmiscexport.h"
10 
11 namespace swift::misc
12 {
18 
23 } // namespace swift::misc
24 
25 #endif // SWIFT_MISC_CPUTIME_H
Free functions in swift::misc.
int getProcessCpuTimeMs()
Get the time in milliseconds that the CPU has spent executing the current process.
Definition: cputime.cpp:61
int getThreadCpuTimeMs()
Get the time in milliseconds that the CPU has spent executing the current thread.
Definition: cputime.cpp:65
#define SWIFT_MISC_EXPORT
Export a class or function from the library.