mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 00:44:55 +03:00
Export begin_call, end_call timings fields to RFC3339 (microseconds)
This commit is contained in:
parent
fb90b532de
commit
fa46a56430
@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
use chrono::{DateTime, Utc};
|
||||
use chrono::{DateTime, SecondsFormat, Utc};
|
||||
use hurl_core::ast::SourceInfo;
|
||||
use serde_json::Number;
|
||||
|
||||
@ -277,11 +277,11 @@ impl Timings {
|
||||
let mut map = serde_json::Map::new();
|
||||
map.insert(
|
||||
"begin_call".to_string(),
|
||||
serde_json::Value::String(self.begin_call.to_string()),
|
||||
serde_json::Value::String(self.begin_call.to_rfc3339_opts(SecondsFormat::Micros, true)),
|
||||
);
|
||||
map.insert(
|
||||
"end_call".to_string(),
|
||||
serde_json::Value::String(self.end_call.to_string()),
|
||||
serde_json::Value::String(self.end_call.to_rfc3339_opts(SecondsFormat::Micros, true)),
|
||||
);
|
||||
let value = self.name_lookup.as_micros() as u64;
|
||||
map.insert(
|
||||
|
Loading…
Reference in New Issue
Block a user