diff --git a/docs.html b/docs.html index 5f8bffe4..740ae30d 100644 --- a/docs.html +++ b/docs.html @@ -17192,7 +17192,37 @@ See also: wall_clock
+ .tic()
+ |
+ + |
+ + start the timer + | +
+ .toc()
+ |
+ + |
+
+ return the number of seconds since the last call to .tic()
+ |
+
wall_clock timer;
-mat A(100, 100, fill::randu);
-mat B(100, 100, fill::randu);
-mat C;
-
timer.tic();
-for(uword i=0; i<100000; ++i)
- {
- C = A + B + A + B;
- }
+// ... do something ...
double n = timer.toc();
@@ -17218,6 +17241,12 @@ cout << "number of seconds: " << n << endl;