Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lst-data-process-128
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lst
lst-data-process-128
Commits
970aec43
Commit
970aec43
authored
May 18, 2016
by
legoc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments
parent
7a67c117
Pipeline
#337
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/lstdpp128/apps/common/IterativeVectorInsert.cpp
src/lstdpp128/apps/common/IterativeVectorInsert.cpp
+9
-9
No files found.
src/lstdpp128/apps/common/IterativeVectorInsert.cpp
View file @
970aec43
...
...
@@ -71,36 +71,36 @@ int main(int argc, char * argv[]) {
cout
<<
listModeContext
<<
endl
;
// Define the algorithm using the class template EventArrayAlgorithm configured with the processor Insert.
//
EventArrayAlgorithm
<
Insert
>
algorithm
;
// Initialize
// Initialize
the Insert processor.
algorithm
.
processor
().
init
();
//
creating the events
//
Create the event array with a size (the size is not necessarily twice the size of the read buffer).
EventArray
events
(
blockSize
);
int
currentPercentage
=
0
;
// Measure the time for processing.
time_t
start
=
time
(
0
);
time_t
t1
=
start
;
//
reading list mode
//
Loop until there is no data.
while
(
true
)
{
//
reading next block
//
Read the next buffer.
int32_t
size
=
reader
.
read
();
//
exiting if no data
//
Exit if the buffer is empty.
if
(
size
==
0
)
{
break
;
}
//
processing block
//
Process the buffer.
algorithm
.
process
(
reader
.
buffer
(),
size
,
events
);
}
// Call a terminal function.
algorithm
.
finish
(
events
);
// Print the results.
time_t
t2
=
time
(
0
);
cout
<<
"insertion terminated in "
<<
(
t2
-
t1
)
<<
"s"
<<
endl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment