Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
432b7aea
There was an error fetching the commit references. Please try again later.
Commit
432b7aea
authored
6 years ago
by
Nina Džugasová
Committed by
Tomáš Oberhuber
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added documentation to Logger.
parent
76cb6966
No related branches found
No related tags found
1 merge request
!15
Nina
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/TNL/File.h
+2
-2
2 additions, 2 deletions
src/TNL/File.h
src/TNL/Logger.h
+14
-1
14 additions, 1 deletion
src/TNL/Logger.h
src/TNL/Timer.h
+3
-3
3 additions, 3 deletions
src/TNL/Timer.h
with
19 additions
and
6 deletions
src/TNL/File.h
+
2
−
2
View file @
432b7aea
...
...
@@ -88,7 +88,7 @@ class File
return
this
->
writtenElements
;
}
/// \brief Function that gets elements from given file.
/// \brief
Method that can write particular data type from given file into GPU. (
Function that gets
particular
elements from given file.
)
///
/// Returns boolean value based on the succes in reading elements from given file.
/// \param buffer Pointer in memory.
...
...
@@ -101,7 +101,7 @@ class File
template
<
typename
Type
,
typename
Device
=
Devices
::
Host
>
bool
read
(
Type
*
buffer
);
/// \brief Function that writes elements into given file.
/// \brief
Method that can write particular data type from CPU into given file. (
Function that writes
particular
elements into given file.
)
///
/// Returns boolean value based on the succes in writing elements into given file.
/// \param buffer Pointer in memory.
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Logger.h
+
14
−
1
View file @
432b7aea
...
...
@@ -19,16 +19,29 @@ class Logger
{
public:
/// \brief Basic constructor.
///
/// \param _width Integer that defines the width of logger.
/// \param _stream Where to create the logger, e.g. cout or a certain file.s
Logger
(
int
_width
,
std
::
ostream
&
_stream
);
/// \brief Creates header in given logger.
///
/// \param title String desribing the title/header.
void
writeHeader
(
const
String
&
title
);
/// \brief Creates predefined separator - structure in the logger.
void
writeSeparator
();
/// \brief Inserts information about system parameters into logger.
///
/// \param parameters
bool
writeSystemInformation
(
const
Config
::
ParameterContainer
&
parameters
);
/// \brief Inserts a line with current time into logger.
///
/// \param label Description of the current time line.
void
writeCurrentTime
(
const
char
*
label
);
// TODO: add units
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Timer.h
+
3
−
3
View file @
432b7aea
...
...
@@ -53,7 +53,7 @@ class Timer
/// It returns the elapsed time between calling the start() and stop() functions.
/// Starts counting the real time after the function start() is called and
/// pauses when the function stop() is called.
/// If the timer have been started more then on
e tim
e without resetting,
/// If the timer have been started more then on
c
e without resetting,
/// the real time is counted by adding all intervals (between start and stop
/// functions) together.
/// This function can be called while the timer is running, there is no
...
...
@@ -70,7 +70,7 @@ class Timer
/// Returns the number of CPU cycles (machine cycles).
unsigned
long
long
int
getCPUCycles
()
const
;
/// \brief Writes a record to the \e logger.
/// \brief Writes a record
in
to the \e logger.
///
/// \param logger
/// \param logLevel A whole number from zero up, which indicates the indent.
...
...
@@ -96,7 +96,7 @@ class Timer
unsigned
long
long
int
initialCPUCycles
,
totalCPUCycles
;
/// \brief Saves information about state of
the
timer.
/// \brief Saves information about
the
state of
given
timer.
///
/// Knows whether the timer is currently stopped or not.
bool
stopState
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment