]> git.saurik.com Git - wxWidgets.git/blob - tests/benchmarks/datetime.cpp
Use wxFindWindowAtPoint() for hit testing in wxPopupTransientWindow.
[wxWidgets.git] / tests / benchmarks / datetime.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: tests/benchmarks/datetime.cpp
3 // Purpose: wxDateTime benchmarks
4 // Author: Vadim Zeitlin
5 // Created: 2011-05-23
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #include "wx/datetime.h"
11
12 #include "bench.h"
13
14 BENCHMARK_FUNC(ParseDate)
15 {
16 wxDateTime dt;
17 return dt.ParseDate("May 23, 2011") && dt.GetMonth() == wxDateTime::May;
18 }
19