Allow specifying a timestamp when creating a sample

Change-Id: Ic2947725edb5bf50ba9bfff14d4c0713e9aed3aa
Merge "Allow specifying a timestamp when creating a sample"