KM3NeT CLB
2.0
KM3NeT CLB v2 Embedded Software
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
profiler.h
1
/*
2
* KM3NeT CLB v2 Firmware
3
* ----------------------
4
*
5
* Copyright 2012-2015 KM3NeT Collaboration
6
*
7
* All Rights Reserved.
8
*
9
*
10
* File : profiler.h
11
* Created : 4 mrt. 2015
12
* Author : Vincent van Beveren
13
*/
14
#ifndef DBG_PROFILER_H_
15
#define DBG_PROFILER_H_
16
17
#include <
drv/wb/ticks.h
>
18
19
typedef
struct
{
20
const
char
* name;
21
uint32_t time;
22
uint32_t count;
23
uint32_t t;
24
}
ProfEntry
;
25
26
27
static
inline
void
profStart(
ProfEntry
* entry) {
28
entry->t =
ticks
();
29
}
30
void
profStop(
ProfEntry
* entry);
31
32
33
#endif
/* DBG_PROFILER_H_ */
ticks.h
White Rabbit simple timer 'Ticks' driver.
ProfEntry
Definition:
profiler.h:19
ticks
static uint32_t ticks()
Nr of ticks since device start up.
Definition:
ticks.h:37
src
common
dbg
profiler.h
Generated on Mon Mar 15 2021 09:06:53 for KM3NeT CLB by
1.8.5