# mco_trans_get_start_time
RT

### Prototype

       MCO_RET mco_trans_get_start_time(mco_trans_h t, timer_unit* time_msec);

### Arguments

`t`
Transaction handle
`time_msec`
Address of the output timer_unit structure

### Description

> This function returns the clock start time (i.e. the time of the mco_trans_rt_start call that initiated the current transaction) for the given transaction or the `MCO_E_TRANS_NOT_ACTIVE` error if the transactions not active.

### Return Codes

`MCO_S_OK`
Time obtained successfully
`MCO_E_TRANS_NOT_ACTIVE`
No active transaction

### Files

Header file:
mco.h
Source file:
target/mcolib/mcotrans.c
Library:
libmcolib.a