]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/datetime.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / tests / benchmarks / datetime.cpp
CommitLineData
bf0f3b26
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: tests/benchmarks/datetime.cpp
3// Purpose: wxDateTime benchmarks
4// Author: Vadim Zeitlin
5// Created: 2011-05-23
bf0f3b26
VZ
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
14BENCHMARK_FUNC(ParseDate)
15{
16 wxDateTime dt;
17 return dt.ParseDate("May 23, 2011") && dt.GetMonth() == wxDateTime::May;
18}
19