Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-13 00:39:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-13 00:39:39 +0400
commit9892736206676c5b7fabc8d1184f9655511ff2dd (patch)
tree83562ac50c93fe3004959d35c1af4a5b380fdd97 /source/blender/blenlib/PIL_time.h
parentcffaa42d3a34c6b310c3c87c98e1f8313881e473 (diff)
code cleanup: header cleanup and remove some duplicate defines.
Diffstat (limited to 'source/blender/blenlib/PIL_time.h')
-rw-r--r--source/blender/blenlib/PIL_time.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/source/blender/blenlib/PIL_time.h b/source/blender/blenlib/PIL_time.h
index c3c10239a8e..6153007be80 100644
--- a/source/blender/blenlib/PIL_time.h
+++ b/source/blender/blenlib/PIL_time.h
@@ -39,39 +39,39 @@ extern "C" {
#endif
extern
- /** Return an indication of time, expressed as
- * seconds since some fixed point. Successive calls
- * are guaranteed to generate values greater than or
- * equal to the last call.
- */
-double PIL_check_seconds_timer (void);
+/** Return an indication of time, expressed as
+ * seconds since some fixed point. Successive calls
+ * are guaranteed to generate values greater than or
+ * equal to the last call.
+ */
+double PIL_check_seconds_timer(void);
- /**
- * Platform-independent sleep function.
- * \param ms Number of milliseconds to sleep
- */
-void PIL_sleep_ms (int ms);
+/**
+ * Platform-independent sleep function.
+ * \param ms Number of milliseconds to sleep
+ */
+void PIL_sleep_ms(int ms);
/** Utility defines for timing.
* requires BLI_utildefines.h for 'AT'
* TIMEIT_VALUE returns the time since TIMEIT_START was called.
*/
-#define TIMEIT_START(var) \
-{ \
- double _timeit_##var= PIL_check_seconds_timer(); \
- printf("time start (" #var "): " AT "\n"); \
- fflush(stdout); \
- { \
+#define TIMEIT_START(var) \
+ { \
+ double _timeit_##var = PIL_check_seconds_timer(); \
+ printf("time start (" #var "): " AT "\n"); \
+ fflush(stdout); \
+ { (void) \
#define TIMEIT_VALUE(var) (float)(PIL_check_seconds_timer() - _timeit_##var)
-#define TIMEIT_END(var) \
- } \
- printf("time end (" #var "): %.6f" " " AT "\n", TIMEIT_VALUE(var)); \
- fflush(stdout); \
-} \
+#define TIMEIT_END(var) \
+ } \
+ printf("time end (" #var "): %.6f" " " AT "\n", TIMEIT_VALUE(var)); \
+ fflush(stdout); \
+} (void) \
#ifdef __cplusplus
}