Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
S
stopwatch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
3
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Summerton
stopwatch
Compare revisions
0e5c7068e411ff1ed1d2a671930d7d634e6f7a37 to 9609a451b3957f94d58af9ffefb40bf7529775f4
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
define-private-public/stopwatch
Select target project
No results found
9609a451b3957f94d58af9ffefb40bf7529775f4
Select Git revision
Swap
Target
define-private-public/stopwatch
Select target project
define-private-public/stopwatch
1 result
0e5c7068e411ff1ed1d2a671930d7d634e6f7a37
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Cleanup some extra whitespace
· f1255011
Benjamin Summerton
authored
6 years ago
f1255011
Fixed stopwatch library for Nim v0.19
· ff00839a
Benjamin Summerton
authored
6 years ago
ff00839a
Cleanup extra whitespace in tester code
· 9609a451
Benjamin Summerton
authored
6 years ago
9609a451
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
stopwatch/js_target.nim
+2
-3
2 additions, 3 deletions
stopwatch/js_target.nim
stopwatch/regular.nim
+4
-5
4 additions, 5 deletions
stopwatch/regular.nim
tester.nim
+14
-16
14 additions, 16 deletions
tester.nim
tester_js.nim
+13
-13
13 additions, 13 deletions
tester_js.nim
with
33 additions
and
37 deletions
stopwatch/js_target.nim
View file @
9609a451
...
...
@@ -109,7 +109,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch =
startTicks
:
0.
Ticks
,
recordLaps
:
enableLapping
,
previousLap
:
0.
Ticks
,
laps
:
if
enableLapping
:
@[]
else
:
nil
,
laps
:
@[]
,
total
:
0
)
...
...
@@ -345,4 +345,3 @@ proc totalMsecs*(sw: var Stopwatch): int =
## float).
proc
totalSecs
*
(
sw
:
var
Stopwatch
):
float
=
return
secs
(
sw
.
totalMsecs
)
This diff is collapsed.
Click to expand it.
stopwatch/regular.nim
View file @
9609a451
...
...
@@ -143,7 +143,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch =
startTicks
:
0.
Ticks
,
recordLaps
:
enableLapping
,
previousLap
:
0.
Ticks
,
laps
:
if
enableLapping
:
@[]
else
:
nil
,
laps
:
@[]
,
total
:
0
)
...
...
@@ -415,4 +415,3 @@ proc totalMsecs*(sw: var Stopwatch): int64 =
## See also: `totalNsecs()`, `totalUsecs()`, `totalMsecs()`
proc
totalSecs
*
(
sw
:
var
Stopwatch
):
float
=
return
secs
(
sw
.
totalNsecs
)
This diff is collapsed.
Click to expand it.
tester.nim
View file @
9609a451
...
...
@@ -119,5 +119,3 @@ else:
recordLaps
=
false
test
()
This diff is collapsed.
Click to expand it.
tester_js.nim
View file @
9609a451
This diff is collapsed.
Click to expand it.