Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fe-vmm-tbl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nice
dev-epics-modules
fe-vmm-tbl
Commits
2d73f745
Commit
2d73f745
authored
2 months ago
by
Marco Filho
Browse files
Options
Downloads
Patches
Plain Diff
Style: run pre-commit
parent
0443c472
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Major refactor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vmmTblApp/src/Utils.cpp
+1
-3
1 addition, 3 deletions
vmmTblApp/src/Utils.cpp
vmmTblApp/src/Utils.h
+2
-2
2 additions, 2 deletions
vmmTblApp/src/Utils.h
with
3 additions
and
5 deletions
vmmTblApp/src/Utils.cpp
+
1
−
3
View file @
2d73f745
...
@@ -63,12 +63,10 @@ int VecUtils::getIndex(std::vector<std::vector<int>>& vec, int function, int& hy
...
@@ -63,12 +63,10 @@ int VecUtils::getIndex(std::vector<std::vector<int>>& vec, int function, int& hy
/**
/**
* @brief Converts a timestamp to a string.
* @brief Converts a timestamp to a string.
*/
*/
std
::
string
TimeUtils
::
timeToStr
(
std
::
chrono
::
time_point
<
std
::
chrono
::
system_clock
>
timestamp
){
std
::
string
TimeUtils
::
timeToStr
(
std
::
chrono
::
time_point
<
std
::
chrono
::
system_clock
>
timestamp
)
{
std
::
time_t
time_t_value
=
std
::
chrono
::
system_clock
::
to_time_t
(
timestamp
);
std
::
time_t
time_t_value
=
std
::
chrono
::
system_clock
::
to_time_t
(
timestamp
);
std
::
tm
tm_value
=
*
std
::
localtime
(
&
time_t_value
);
std
::
tm
tm_value
=
*
std
::
localtime
(
&
time_t_value
);
std
::
ostringstream
oss
;
std
::
ostringstream
oss
;
oss
<<
std
::
put_time
(
&
tm_value
,
"%Y-%m-%d %H:%M:%S"
);
oss
<<
std
::
put_time
(
&
tm_value
,
"%Y-%m-%d %H:%M:%S"
);
return
oss
.
str
();
return
oss
.
str
();
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
vmmTblApp/src/Utils.h
+
2
−
2
View file @
2d73f745
// Generic utilities for the module
// Generic utilities for the module
#include
<vector>
#include
<string>
#include
<chrono>
#include
<chrono>
#include
<string>
#include
<vector>
namespace
VecUtils
{
namespace
VecUtils
{
...
...
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