The Gaudi Framework  master (76629ece)
Loading...
Searching...
No Matches
ITimelineSvc.cpp
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
14
15#include <string>
16
18 : m_record{ &record } {
19 m_record->thread = pthread_self();
20 m_record->slot = ctx.slot();
21 m_record->event = ctx.evt();
22 m_record->algorithm = std::move( alg );
23 m_record->start = TimelineEvent::Clock::now();
24}
25
27 if ( m_record ) m_record->end = TimelineEvent::Clock::now();
28}
This class represents an entry point to all the event specific data.