Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
20824b96
Commit
20824b96
authored
Feb 07, 2014
by
Alexandre Duret-Lutz
Browse files
timer: also consider the time spent in child processes
* src/misc/timer.hh: Fix. * NEWS: Mention the bug.
parent
55ee18b9
Changes
2
Show whitespace changes
Inline
Side-by-side
NEWS
View file @
20824b96
...
@@ -11,6 +11,15 @@ New in spot 1.2.2a (not yet released)
...
@@ -11,6 +11,15 @@ New in spot 1.2.2a (not yet released)
- randltl had trouble generating formulas when all unary, or
- randltl had trouble generating formulas when all unary, or
all binary/n-ary operators were disabled.
all binary/n-ary operators were disabled.
- Fix spurious testsuite failure when using Pandas 0.13.
- Fix spurious testsuite failure when using Pandas 0.13.
- Add the time spent in child processes when measuring time
with the timer class.
- Fix determinism of the SAT-based minimization encoding.
(It would sometimes produce different equivalent automata,
because of a different encoding order.)
- A the SAT-based minimization is asked for a 10-state automaton
and return a 6-state automaton, do not ask for a 9-state
automaton in the next iteration...
New in spot 1.2.2 (2014-01-24)
New in spot 1.2.2 (2014-01-24)
...
...
src/misc/timer.hh
View file @
20824b96
// -*- coding: utf-8 -*-
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2011, 2012, 2013 Laboratoire de Recherche
et
// Copyright (C) 2009, 2011, 2012, 2013
, 2014
Laboratoire de Recherche
// Développement de l'Epita (LRDE).
//
et
Développement de l'Epita (LRDE).
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
// et Marie Curie.
...
@@ -69,8 +69,8 @@ namespace spot
...
@@ -69,8 +69,8 @@ namespace spot
#ifdef SPOT_HAVE_TIMES
#ifdef SPOT_HAVE_TIMES
struct
tms
tmp
;
struct
tms
tmp
;
times
(
&
tmp
);
times
(
&
tmp
);
start_
.
utime
=
tmp
.
tms_utime
;
start_
.
utime
=
tmp
.
tms_utime
+
tmp
.
tms_cutime
;
start_
.
stime
=
tmp
.
tms_stime
;
start_
.
stime
=
tmp
.
tms_stime
+
tmp
.
tms_cstime
;
#else
#else
start_
.
utime
=
clock
();
start_
.
utime
=
clock
();
#endif
#endif
...
@@ -83,8 +83,8 @@ namespace spot
...
@@ -83,8 +83,8 @@ namespace spot
#ifdef SPOT_HAVE_TIMES
#ifdef SPOT_HAVE_TIMES
struct
tms
tmp
;
struct
tms
tmp
;
times
(
&
tmp
);
times
(
&
tmp
);
total_
.
utime
+=
tmp
.
tms_utime
-
start_
.
utime
;
total_
.
utime
+=
tmp
.
tms_utime
+
tmp
.
tms_cutime
-
start_
.
utime
;
total_
.
stime
+=
tmp
.
tms_stime
-
start_
.
stime
;
total_
.
stime
+=
tmp
.
tms_stime
+
tmp
.
tms_cstime
-
start_
.
stime
;
#else
#else
total_
.
utime
+=
clock
()
-
start_
.
utime
;
total_
.
utime
+=
clock
()
-
start_
.
utime
;
#endif
#endif
...
...
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