SST
16.0.0
Structural Simulation Toolkit
cputimer.h
1
// Copyright 2009-2026 NTESS. Under the terms
2
// of Contract DE-NA0003525 with NTESS, the U.S.
3
// Government retains certain rights in this software.
4
//
5
// Copyright (c) 2009-2026, NTESS
6
// All rights reserved.
7
//
8
// This file is part of the SST software package. For license
9
// information, see the LICENSE file in the top level directory of the
10
// distribution.
11
12
#ifndef SST_CORE_CPU_TIMER_H
13
#define SST_CORE_CPU_TIMER_H
14
15
#include <cstdint>
16
#include <string>
17
#include <sys/time.h>
18
19
/**
20
* @return Current CPU time in seconds using the time of day. Timezone information is not filled.
21
*/
22
double
sst_get_cpu_time();
23
24
/**
25
* @return Current CPU time in us using the time of day. Timezone information is not filled.
26
*/
27
uint64_t sst_get_cpu_time_usec();
28
29
/**
30
Returns a string with the current time in HH:MM:SS format
31
*/
32
std::string sst_get_current_time();
33
34
#endif
// SST_CORE_CPU_TIMER_H
src
sst
core
cputimer.h
Generated on
for SST by
1.16.1