FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
voroffset/src/vor3d/Timer.cpp at master · geometryprocessing/voroffset · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
geometryprocessing
/
voroffset
Public
Notifications
You must be signed in to change notification settings
Fork
16
Star
45
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
voroffset
/
src
/
vor3d
/
Timer.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 583 Bytes
Breadcrumbs
voroffset
/
src
/
vor3d
/
Timer.cpp
Copy path
File metadata and controls
21 lines (17 loc) · 583 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
include
"
vor3d/Timer.h
"
double
Timer::show
()
{
typedef
std::chrono::duration<
double
, std::milli> double_milli;
auto
t =
elapsed
();
auto
t_s = std::chrono::duration_cast<std::chrono::seconds>(t);
auto
t_ms = std::chrono::duration_cast<double_milli>(t - t_s);
auto
total_ms = std::chrono::duration_cast<double_milli>(t);
return
std::chrono::duration_cast<double_milli>(t).
count
();
}
double
Timer::get
()
{
typedef
std::chrono::duration<
double
, std::milli> double_milli;
auto
t =
elapsed
();
auto
t_ms = std::chrono::duration_cast<double_milli>(t);
return
t_ms.
count
();
}
Back
|
FazBrowse Home
|
New Git URL