initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
19
libs/wxWidgets-3.3.1/tests/benchmarks/datetime.cpp
Normal file
19
libs/wxWidgets-3.3.1/tests/benchmarks/datetime.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: tests/benchmarks/datetime.cpp
|
||||
// Purpose: wxDateTime benchmarks
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2011-05-23
|
||||
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/datetime.h"
|
||||
|
||||
#include "bench.h"
|
||||
|
||||
BENCHMARK_FUNC(ParseDate)
|
||||
{
|
||||
wxDateTime dt;
|
||||
return dt.ParseDate("May 23, 2011") && dt.GetMonth() == wxDateTime::May;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user