]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/datetime.cpp
Use current time, not the Epoch for time zone determination.
[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
6// RCS-ID: $Id$
7// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#include "wx/datetime.h"
12
13#include "bench.h"
14
15BENCHMARK_FUNC(ParseDate)
16{
17 wxDateTime dt;
18 return dt.ParseDate("May 23, 2011") && dt.GetMonth() == wxDateTime::May;
19}
20