[#BloombergLP-bdlmt-EventSchedulerTestTimeSource-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/EventSchedulerTestTimeSource.adoc[EventSchedulerTestTimeSource]::EventSchedulerTestTimeSource
:relfileprefix: ../../../
:mrdocs:

Create a test time&hyphen;source that controls `scheduler`&apos;s clock&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;eventscheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
EventSchedulerTestTimeSource(
    xref:BloombergLP/bdlmt/EventScheduler.adoc[EventScheduler]* scheduler,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create a test time&hyphen;source object that will control the &quot;system&hyphen;time&quot; observed by the specified `scheduler`&period; Initialize `now` to be an arbitrary time value&period; The behavior is undefined if any methods have previously been called on `scheduler`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless the supplied allocator also outlives the `EventScheduler` associated with this time source&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *scheduler*
| event scheduler whose clock is controlled
| *basicAllocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
